/* ===== SSO统一认证中心 样式 ===== */
:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #DBEAFE;
    --success: #059669;
    --warning: #D97706;
    --danger: #DC2626;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-500: #6B7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--gray-50);
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- 顶部导航 ---- */
.nav {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-logo:hover { text-decoration: none; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-links a {
    color: var(--gray-700);
    font-size: 17px;
}
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-user span { color: var(--gray-700); font-size: 16px; }

/* ---- 按钮 ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 28px;
    font-size: 18px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline {
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); color: var(--primary-dark); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 15px; }

/* ---- 容器 ---- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
}
.container-narrow {
    max-width: 480px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* ---- 认证卡片 ---- */
.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 40px 36px;
    margin-top: 40px;
}
.auth-card h1 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 8px;
    color: var(--gray-900);
}
.auth-card .subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 16px;
    margin-bottom: 32px;
}
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    border-bottom: 2px solid var(--gray-200);
}
.auth-tab {
    flex: 1;
    text-align: center;
    padding: 14px;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ---- 表单 ---- */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}
.form-group input,
.form-group select {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    font-size: 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: #fff;
    color: var(--gray-900);
    transition: border-color 0.2s;
    outline: none;
}
.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group .hint {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 6px;
}
.form-error {
    color: var(--danger);
    font-size: 15px;
    margin-top: 8px;
    min-height: 22px;
}

/* ---- 产品卡片网格 ---- */
.hero {
    text-align: center;
    padding: 56px 0 40px;
}
.hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 20px;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.product-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 28px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}
.product-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.product-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}
.product-card h3 {
    font-size: 22px;
    font-weight: 700;
}
.product-desc {
    color: var(--gray-500);
    font-size: 16px;
    margin-bottom: 16px;
    flex-grow: 1;
}
.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}
.product-free {
    font-size: 15px;
    color: var(--gray-500);
}
.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}
.product-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-500);
}
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}
.badge-success { background: #D1FAE5; color: #065F46; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-info { background: var(--primary-light); color: var(--primary-dark); }
.badge-gray { background: var(--gray-100); color: var(--gray-500); }

/* ---- 全包套餐横幅 ---- */
.all-access-banner {
    background: linear-gradient(135deg, var(--primary), #7C3AED);
    border-radius: 16px;
    padding: 32px;
    color: #fff;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.all-access-banner h2 {
    font-size: 26px;
    margin-bottom: 8px;
}
.all-access-banner p {
    font-size: 17px;
    opacity: 0.9;
}
.all-access-banner .price {
    font-size: 36px;
    font-weight: 800;
}
.all-access-banner .price span {
    font-size: 16px;
    font-weight: 400;
}
.all-access-banner .btn {
    background: #fff;
    color: var(--primary);
}
.all-access-banner .btn:hover { background: var(--gray-100); }

/* ---- Dashboard ---- */
.dashboard-header {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 32px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.dashboard-user h2 {
    font-size: 26px;
    margin-bottom: 4px;
}
.dashboard-user p {
    color: var(--gray-500);
    font-size: 16px;
}
.dashboard-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 28px;
    margin-bottom: 24px;
}
.dashboard-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}
.sub-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sub-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--gray-50);
    border-radius: var(--radius);
    gap: 16px;
    flex-wrap: wrap;
}
.sub-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.sub-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.sub-item-name {
    font-size: 18px;
    font-weight: 600;
}
.sub-item-detail {
    font-size: 15px;
    color: var(--gray-500);
}

/* ---- Toast ---- */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    padding: 14px 24px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    max-width: 400px;
}
.toast-success { background: #D1FAE5; color: #065F46; }
.toast-error { background: #FEE2E2; color: #991B1B; }
.toast-info { background: var(--primary-light); color: var(--primary-dark); }
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ---- Footer ---- */
.footer {
    text-align: center;
    padding: 40px 24px;
    color: var(--gray-500);
    font-size: 15px;
}

/* ---- 响应式 ---- */
@media (max-width: 640px) {
    body { font-size: 16px; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 17px; }
    .product-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 28px 20px; margin-top: 20px; }
    .nav { padding: 0 16px; }
    .nav-links { gap: 12px; }
    .nav-links a { font-size: 15px; }
    .all-access-banner { flex-direction: column; text-align: center; }
    .dashboard-header { flex-direction: column; align-items: flex-start; }
}
