/* 全局样式 - 现代浅色扁平化设计 */
:root {
    --bg-primary: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --bg-secondary: rgba(255, 255, 255, 0.8);
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-primary: #3b82f6;
    --accent-secondary: #2563eb;
    --accent-gradient: linear-gradient(135deg, #3b82f6, #2563eb);
    --shadow-color: rgba(59, 130, 246, 0.1);
    --border-color: #e2e8f0;
    --hover-bg: #f1f5f9;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    background: var(--bg-card) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    filter: none;
}

.nav-toggle {
    display: none;
    cursor: pointer;
}

.nav-toggle button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    outline: none;
}

.nav-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--accent-primary);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.nav-toggle span:nth-child(1) {
    top: 0px;
}

.nav-toggle span:nth-child(2) {
    top: 10px;
}

.nav-toggle span:nth-child(3) {
    top: 20px;
}

.nav-toggle.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.nav-toggle.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover {
    color: var(--accent-primary);
    background: var(--hover-bg);
    transform: none;
}

.nav-links i {
    font-size: 1.1rem;
}

/* 移动端导航栏样式 */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .nav-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        padding: 1rem;
        width: 100%;
        justify-content: flex-start;
    }
}

/* 通用容器样式 */
.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

/* 背景装饰元素 */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary)08, var(--accent-secondary)05);
    border: 1px solid var(--border-color);
    animation: float-gentle 15s ease-in-out infinite;
}

.floating-circle:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-circle:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 70%;
    right: 20%;
    animation-delay: -5s;
}

.floating-circle:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 85%;
    animation-delay: -10s;
}

/* 卡片样式 */
.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    z-index: 2;
    transition: all 0.3s ease;
    overflow: hidden;
}

.auth-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.auth-header {
    padding: 32px 32px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #f8fafc, #ffffff);
}

.auth-header h2 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.8rem;
    font-weight: 600;
}

.auth-header p {
    color: var(--text-secondary);
    margin-top: 0;
    font-size: 1rem;
}

.auth-body {
    padding: 32px;
    background: var(--bg-card);
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.input-group {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    position: relative;
}

.input-group:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--shadow-color);
}

.form-control {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 14px 16px;
    width: 100%;
    font-size: 0.95rem;
    border-radius: 8px;
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
}

.form-control:focus {
    background: transparent;
    color: var(--text-primary);
    box-shadow: none;
    outline: none;
}

/* 按钮样式 */
.btn-auth {
    width: 100%;
    padding: 14px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-top: 20px;
}

.btn-auth:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 验证码按钮样式 */
.verify-btn {
    padding: 10px 20px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 10px;
}

.verify-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.verify-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 复选框样式 */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
}

.custom-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-checkbox input[type="checkbox"]:checked {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.custom-checkbox label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
}

.custom-checkbox a {
    color: var(--accent-primary);
    text-decoration: none;
}

/* 链接样式 */
.auth-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-link a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

/* 动画 */
@keyframes float-gentle {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg); 
        opacity: 0.5;
    }
    25% { 
        transform: translate(10px, -10px) rotate(90deg); 
        opacity: 0.7;
    }
    50% { 
        transform: translate(-5px, 5px) rotate(180deg); 
        opacity: 0.3;
    }
    75% { 
        transform: translate(-10px, -5px) rotate(270deg); 
        opacity: 0.6;
    }
}

/* 步骤指示器样式 */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    gap: 40px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.step-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
}

/* 激活状态 */
.step.active .step-number {
    background: var(--accent-gradient);
    border-color: var(--accent-primary);
    color: white;
    transform: scale(1.1);
}

.step.active .step-title {
    color: var(--accent-primary);
    font-weight: 600;
}

/* 完成状态 */
.step.completed .step-number {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.step.completed .step-title {
    color: var(--success-color);
    font-weight: 600;
}

.step.completed .step-number::after {
    content: '✓';
    font-size: 0.9rem;
}

/* 连接线 */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(100% + 20px);
    width: 40px;
    height: 2px;
    background: var(--border-color);
    transition: all 0.3s ease;
}

.step.completed:not(:last-child)::after {
    background: var(--success-color);
}

/* 注册前须知样式 */
.notice-content {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.notice-content h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.notice-text {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1rem;
}

.notice-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-notice-unread {
    flex: 1;
    padding: 14px 24px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.btn-notice-unread:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px var(--shadow-color);
}

.btn-notice-read {
    flex: 1;
    padding: 14px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-notice-read:hover {
    background: var(--hover-bg);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}



/* 分步注册样式 */
.register-step {
    transition: all 0.3s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
    }

    .auth-card {
        margin: 0;
        max-width: none;
    }

    .auth-header {
        padding: 24px 20px;
    }

    .auth-body {
        padding: 24px 20px;
    }

    .btn-auth {
        padding: 12px;
    }

    /* 移动端步骤指示器 */
    .step-indicator {
        gap: 20px;
        margin-bottom: 20px;
    }

    .step:not(:last-child)::after {
        width: 20px;
        left: calc(100% + 10px);
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .step-title {
        font-size: 0.7rem;
    }

    /* 移动端须知样式 */
    .notice-content {
        padding: 20px;
        margin-bottom: 20px;
    }

    .notice-content h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .notice-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .notice-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn-notice-unread,
    .btn-notice-read {
        padding: 12px 20px;
        font-size: 0.9rem;
    }


}

/* SweetAlert2 自定义样式 */
.auth-swal-popup {
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    animation: fadeIn 0.3s ease-out;
}

.auth-swal-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.auth-swal-content {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.auth-swal-button {
    background: var(--accent-gradient) !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.auth-swal-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

/* 弹窗动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 现代简约提示弹窗 */
.auth-modal {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    animation: slideIn 0.4s ease-out;
}

.auth-modal-content {
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: 15px;
    padding: 20px 25px;
    width: 320px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.auth-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: all 0.3s ease;
}

.auth-modal-content.success::before {
    background: linear-gradient(to bottom, #34d399, #10b981);
}

.auth-modal-content.error::before {
    background: linear-gradient(to bottom, #f87171, #ef4444);
}

.auth-modal-content.warning::before {
    background: linear-gradient(to bottom, #fbbf24, #f59e0b);
}

.auth-modal-content h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-modal-content h3::before {
    font-family: "FontAwesome";
    font-size: 1rem;
}

.auth-modal-content.success h3::before {
    content: "\f00c";
    color: #10b981;
}

.auth-modal-content.error h3::before {
    content: "\f00d";
    color: #ef4444;
}

.auth-modal-content.warning h3::before {
    content: "\f071";
    color: #f59e0b;
}

.auth-modal-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    padding-right: 20px;
}

.auth-modal-content .btn-auth {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.auth-modal-content .btn-auth:hover {
    opacity: 1;
}

.auth-modal-content .btn-auth::before {
    content: "\f00d";
    font-family: "FontAwesome";
    color: var(--text-secondary);
    font-size: 1rem;
}

/* 提示框动画 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* 价格卡片样式 */
.price-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.price-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.price-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    width: 100%;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.price-card.featured {
    border: 2px solid #5e72e4;
    transform: scale(1.05);
}

.price-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.price-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #32325d;
    text-transform: uppercase;
}

.price-features {
    margin-bottom: 25px;
}

.price-features p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.btn-price {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #5e72e4, #825ee4);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-price:hover {
    background: linear-gradient(to right, #4a5de0, #7048e8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(94, 114, 228, 0.4);
    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    .price-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .price-card {
        max-width: 100%;
    }
    
    .price-card.featured {
        transform: none;
        order: -1;
    }
    
    .price-card.featured:hover {
        transform: translateY(-10px);
    }
} 