/* 互联科创协会招新页面专用样式 */

/* 可访问性相关样式 */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif !important;
    line-height: 1.6;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #0a0a1a;
}

/* 星空背景 */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMzYgMzRjMC0yLjItMS44LTQtNC00cy00IDEuOC00IDQgMS44IDQgNCA0IDQtMS44IDQtNHptMCAyOGMwLTIuMi0xLjgtNC00LTRzLTQgMS44LTQgNCAxLjggNCA0IDQgNC0xLjggNC00em0tMjggMGMwLTIuMi0xLjgtNC00LTRzLTQgMS44LTQgNCAxLjggNCA0IDQgNC0xLjggNC00em0xNCAyOGMwLTIuMi0xLjgtNC00LTRzLTQgMS44LTQgNCAxLjggNCA0IDQgNC0xLjggNC00em0xNC0yOGMwLTIuMi0xLjgtNC00LTRzLTQgMS44LTQgNCAxLjggNCA0IDQgNC0xLjggNC00em0xNC0xNGMwLTIuMi0xLjgtNC00LTRzLTQgMS44LTQgNCAxLjggNCA0IDQgNC0xLjggNC00eiIgZmlsbD0iI2ZmZiIgZmlsbC1vcGFjaXR5PSIwLjEiLz48cGF0aCBkPSJNMTggMTRjMC0yLjItMS44LTQtNC00cy00IDEuOC00IDQgMS44IDQgNCA0IDQtMS44IDQtNHptMCAyOGMwLTIuMi0xLjgtNC00LTRzLTQgMS44LTQgNCAxLjggNCA0IDQgNC0xLjggNC00em0yOCAwYzAtMi4yLTEuOC00LTQtNHMtNCAxLjgtNCA0IDEuOCA0IDQgNCA0LTEuOCA0LTR6IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMSIvPjxwYXRoIGQ9Ik00MiAxNGMwLTIuMi0xLjgtNC00LTRzLTQgMS44LTQgNCAxLjggNCA0IDQgNC0xLjggNC00em0wIDI4YzAtMi4yLTEuOC00LTQtNHMtNCAxLjgtNCA0IDEuOCA0IDQgNCA0LTEuOCA0LTR6IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMyIvPjxwYXRoIGQ9Ik00MiAxNGMwLTIuMi0xLjgtNC00LTRzLTQgMS44LTQgNCAxLjggNCA0IDQgNC0xLjggNC00em0wIDI4YzAtMi4yLTEuOC00LTQtNHMtNCAxLjgtNCA0IDEuOCA0IDQgNCA0LTEuOCA0LTR6IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMyIvPjwvZz48L3N2Zz4=');
}

.twinkling {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMzYgMzRjMC0yLjItMS44LTQtNC00cy00IDEuOC00IDQgMS44IDQgNCA0IDQtMS44IDQtNHptMCAyOGMwLTIuMi0xLjgtNC00LTRzLTQgMS44LTQgNCAxLjggNCA0IDQgNC0xLjggNC00em0tMjggMGMwLTIuMi0xLjgtNC00LTRzLTQgMS44LTQgNCAxLjggNCA0IDQgNC0xLjggNC00em0xNCAyOGMwLTIuMi0xLjgtNC00LTRzLTQgMS44LTQgNCAxLjggNCA0IDQgNC0xLjggNC00em0xNC0yOGMwLTIuMi0xLjgtNC00LTRzLTQgMS44LTQgNCAxLjggNCA0IDQgNC0xLjggNC00em0xNC0xNGMwLTIuMi0xLjgtNC00LTRzLTQgMS44LTQgNCAxLjggNCA0IDQgNC0xLjggNC00eiIgZmlsbD0iI2ZmZiIgZmlsbC1vcGFjaXR5PSIwLjMiIG9wYWNpdHk9IjAuMyIvPjxwYXRoIGQ9Ik0xOCAxNGMwLTIuMi0xLjgtNC00LTRzLTQgMS44LTQgNCAxLjggNCA0IDQgNC0xLjggNC00em0wIDI4YzAtMi4yLTEuOC00LTQtNHMtNCAxLjgtNCA0IDEuOCA0IDQgNCA0LTEuOCA0LTR6IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMyIvPjxwYXRoIGQ9Ik00MiAxNGMwLTIuMi0xLjgtNC00LTRzLTQgMS44LTQgNCAxLjggNCA0IDQgNC0xLjggNC00em0wIDI4YzAtMi4yLTEuOC00LTQtNHMtNCAxLjgtNCA0IDEuOCA0IDQgNCA0LTEuOCA0LTR6IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMyIvPjwvZz48L3N2Zz4=');
    animation: twinkle 5s linear infinite;
}

@keyframes twinkle {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

.container {
    max-width: 800px;
    width: 90%;
    padding: 20px;
    z-index: 1;
}

.form-card {
    background: rgba(23, 15, 60, 0.8);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(123, 74, 226, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 43, 226, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(123, 74, 226, 0.5);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
    color: #e0c3fc;
}

.form-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #e0c3fc;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.form-header p {
    color: #cbb2fe;
}

.form-group {
    margin-bottom: 25px;
}

.department-label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
    color: #e0c3fc;
}

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.icon-container {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a78bfa;
}

input[type="text"], input[type="tel"], select, textarea {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #8b5cf6;
    border-radius: 8px;
    background-color: rgba(30, 20, 60, 0.6);
    color: #e0c3fc;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

textarea {
    resize: none;
    padding-right: 70px;
    font-family: inherit;
}

.char-count {
    position: absolute;
    right: 15px;
    bottom: 12px;
    font-size: 12px;
    color: #a78bfa;
    background-color: rgba(30, 20, 60, 0.8);
    padding: 2px 8px;
    border-radius: 12px;
}

input[type="text"]:focus,
input[type="tel"]:focus,
select:focus {
    outline: none;
    border-color: #c4b5fd;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

input[type="text"]::placeholder,
input[type="tel"]::placeholder,
select::placeholder {
    color: #a78bfa;
    opacity: 0.7;
}

/* 塔罗牌样式 */
.tarot-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

.tarot-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
    padding: 15px 0;
    width: 100%;
    box-sizing: border-box;
}

.tarot-card {
    perspective: 1000px;
    width: 150px;
    height: 220px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.tarot-card:hover {
    transform: translateY(-5px);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
}

.tarot-card:hover .card-inner {
    transform: rotateY(10deg);
    -webkit-transform: rotateY(10deg);
    -moz-transform: rotateY(10deg);
    -ms-transform: rotateY(10deg);
}

.tarot-card.selected .card-inner {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(123, 74, 226, 0.3);
}

.card-front {
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
    color: white;
}

.card-back {
    background: linear-gradient(135deg, #4c1d95, #5b21b6);
    color: white;
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #e0c3fc;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.card-front h3 {
    font-size: 1.5rem;
    color: #e0c3fc;
    margin: 0;
}

.card-back p {
    font-size: 0.9rem;
    color: #e0c3fc;
    text-align: center;
    max-width: 90%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin: 0 auto;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #e0c3fc;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 90%;
}

.card-symbol {
    font-size: 2.5rem;
    margin-top: 15px;
    color: #e0c3fc;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    max-width: 90%;
    overflow: hidden;
}

.selected-department {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    background-color: rgba(139, 92, 246, 0.2);
    color: #e0c3fc;
    font-weight: 500;
    display: none;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123, 74, 226, 0.5);
}

.success-message {
    display: none;
    text-align: center;
    padding: 15px;
    background-color: rgba(74, 222, 128, 0.2);
    border-radius: 8px;
    margin-top: 20px;
    color: #4ade80;
}

.success-message i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tarot-card {
        width: 130px;
        height: 190px;
    }
    .card-icon {
        font-size: 3rem;
    }
    .card-front h3 {
        font-size: 1.3rem;
    }
    .card-back p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
        padding: 10px;
    }
    .tarot-container {
        gap: 10px;
    }
    .tarot-card {
        width: calc(50% - 10px);
        height: 170px;
    }
    .card-icon {
        font-size: 2.5rem;
    }
    .card-front h3 {
        font-size: 1.1rem;
    }
    .card-back p {
        font-size: 0.95rem;
    }
}