:root {
    --primary: #0052d9;
    --primary-hover: #003cab;
    --primary-light: #e8f0fd;
    --primary-glow: rgba(0, 82, 217, 0.18);
    --bg: #f0f4f9;
    --surface: #ffffff;
    --surface-hover: #f8faff;
    --text: #1a1f36;
    --text-sub: #5a6380;
    --text-muted: #8a92a8;
    --border: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.10);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.14);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --danger: #d93026;
    --success: #18a058;
    --warning: #f0a020;
    --disabled-bg: #edf0f5;
    --disabled-text: #a0a8be;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
}

/* ===== HERO INTEGRATED (导航+Banner合体) ===== */
.hero-integrated {
    background: linear-gradient(145deg, #002d9c 0%, #0043c8 35%, #0052d9 65%, #1260f0 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 40px rgba(0, 60, 200, 0.45);
    overflow: hidden;
    border-radius: 0 0 24px 24px;
}

/* 科技感背景装饰 */
.hero-bg-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero-circle {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.07);
}
.hero-circle.c1 {
    width: 380px; height: 380px;
    top: -160px; right: -80px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    animation: heroCirclePulse 8s ease-in-out infinite;
}
.hero-circle.c2 {
    width: 220px; height: 220px;
    bottom: -100px; left: 10%;
    background: radial-gradient(circle, rgba(100,180,255,0.06) 0%, transparent 70%);
    animation: heroCirclePulse 6s ease-in-out infinite reverse;
}
.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}
@keyframes heroCirclePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.08); opacity: 0.7; }
}

/* 导航栏 */
.hero-nav {
    position: relative;
    z-index: 2;
    padding: 0 2.5rem;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-nav-divider {
    position: relative;
    z-index: 2;
    margin: 0 2.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.header-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #fff;
}

.header-subtitle {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.65);
    margin-top: 1px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.header-nav a,
.header-nav span.user-badge {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 0.38rem 0.85rem;
    border-radius: 20px;
    font-size: 0.86rem;
    transition: background var(--transition), color var(--transition);
    font-weight: 500;
}

.header-nav a:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.header-nav a.nav-highlight {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.28);
}

.header-nav a.nav-highlight:hover {
    background: rgba(255,255,255,0.22);
}

/* 时间显示内嵌到导航 */
.hero-time-inline {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    padding: 0.3rem 0.9rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    margin-right: 0.5rem;
}

/* Hero 内容区 */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2.2rem 2.5rem 2.8rem;
}

.hero-tag-row {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.28rem 0.75rem;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.2px;
}

.hero-main-title {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.7rem;
    text-shadow: 0 2px 16px rgba(0,0,0,0.2);
}

.hero-main-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    max-width: 480px;
    margin: 0 auto 1.5rem;
}

.hero-platform-pills {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.platform-pill {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    letter-spacing: 0.2px;
    transition: background 0.2s;
}

.platform-pill:hover {
    background: rgba(255,255,255,0.22);
}

.platform-pill.disabled-pill {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.35);
}

/* 紧急公告跑马灯 */
.notice-ticker {
    position: relative;
    z-index: 2;
    background: rgba(200, 30, 20, 0.55);
    border-top: 1px solid rgba(255,100,100,0.3);
    border-bottom: 1px solid rgba(255,100,100,0.3);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 0.48rem 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background: var(--primary);
    border-radius: 3px;
}

/* ===== SERVICE GRID ===== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    animation: fadeInUp 0.5s both;
}

.service-card:nth-child(2) { animation-delay: 0.07s; }
.service-card:nth-child(3) { animation-delay: 0.14s; }
.service-card:nth-child(4) { animation-delay: 0.21s; }

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #1a6cf5);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 82, 217, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--primary-light);
    flex-shrink: 0;
}

.service-card-icon svg {
    width: 26px;
    height: 26px;
    fill: var(--primary);
}

.service-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.7;
    flex: 1;
}

.service-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-card-disabled {
    opacity: 0.6;
}

.service-card-disabled:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--border);
}

.service-card-disabled::before {
    display: none;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.6rem;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
    letter-spacing: 0.2px;
}

.btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 16px rgba(0, 82, 217, 0.35);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-block {
    width: 100%;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.btn-disabled {
    background: var(--disabled-bg);
    color: var(--disabled-text);
    cursor: not-allowed;
    border-radius: 40px;
    padding: 0.65rem 1.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1.5px dashed #cbd0db;
    display: inline-block;
}

.btn-disabled:hover {
    background: var(--disabled-bg);
    box-shadow: none;
    transform: none;
}

/* ===== FORM ===== */
.form-page-bg {
    background: linear-gradient(160deg, #f0f4f9 0%, #e6edf8 100%);
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: flex-start;
    padding: 2.5rem 1.5rem;
}

.form-container {
    background: var(--surface);
    padding: 2.75rem 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid var(--border);
    animation: fadeInUp 0.4s both;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.form-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.form-header p {
    font-size: 0.88rem;
    color: var(--text-sub);
}

.form-group {
    margin-bottom: 1.4rem;
    animation: fadeInUp 0.4s both;
}

.form-group:nth-child(2) { animation-delay: 0.05s; }
.form-group:nth-child(3) { animation-delay: 0.1s; }
.form-group:nth-child(4) { animation-delay: 0.15s; }
.form-group:nth-child(5) { animation-delay: 0.2s; }
.form-group:nth-child(6) { animation-delay: 0.25s; }

.form-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.form-label .required-dot {
    color: var(--danger);
    font-size: 1.1rem;
    line-height: 1;
}

.form-label .optional-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    background: #f0f4f9;
    padding: 0.1rem 0.45rem;
    border-radius: 5px;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    background: #fafbfd;
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: #f6f8fc;
    border-left: 3px solid var(--primary);
    border-radius: 0 6px 6px 0;
}

/* ===== ALERTS ===== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.92rem;
    animation: fadeInUp 0.3s both;
}

.alert-success {
    background: #edfbf0;
    color: #146c39;
    border: 1px solid #b7efc5;
}

.alert-danger {
    background: #fff1f0;
    color: #b71c1c;
    border: 1px solid #ffcdd2;
}

.alert-icon {
    font-size: 1.1rem;
    margin-top: 1px;
    flex-shrink: 0;
}

/* ===== ADMIN LOGIN PAGE ===== */
.admin-page {
    min-height: 100vh;
    background: linear-gradient(145deg, #0d1b3e 0%, #0a2057 50%, #0a1832 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.admin-login-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.5s both;
}

.admin-login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-login-logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #1a6cf5);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 30px rgba(0, 82, 217, 0.4);
}

.admin-login-logo-icon svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

.admin-login-logo h2 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.admin-login-logo p {
    color: rgba(255,255,255,0.45);
    font-size: 0.82rem;
}

.admin-login-box .form-label {
    color: rgba(255,255,255,0.75);
}

.admin-login-box .form-control {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    color: #fff;
}

.admin-login-box .form-control::placeholder {
    color: rgba(255,255,255,0.3);
}

.admin-login-box .form-control:focus {
    background: rgba(255,255,255,0.1);
    border-color: rgba(0,130,255,0.8);
    box-shadow: 0 0 0 4px rgba(0,82,217,0.2);
}

.admin-back-link {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color var(--transition);
}

.admin-back-link:hover {
    color: rgba(255,255,255,0.7);
}

/* ===== ADMIN DASHBOARD ===== */
.admin-layout {
    max-width: 1500px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.admin-header-bar {
    background: linear-gradient(135deg, #0a1a3e 0%, #0f2462 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-align: center;
    animation: fadeInUp 0.4s both;
}

.stat-card:nth-child(2) { animation-delay: 0.08s; }
.stat-card:nth-child(3) { animation-delay: 0.16s; }

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* TABLE */
.table-wrapper {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.table-toolbar {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-toolbar-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

.data-table { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 0.85rem 1rem;
    text-align: left;
    background: #f6f9fe;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-sub);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1.5px solid var(--border);
    white-space: nowrap;
}

td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text);
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr {
    transition: background var(--transition);
}

tbody tr:hover td {
    background: #f6f9fe;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #e0f2fe;
    color: #0369a1;
    white-space: nowrap;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

.contact-highlight {
    font-weight: 600;
    color: #c0392b;
    background: #fff5f5;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-size: 0.85rem;
}

.type-badge {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.85rem;
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }
.mb-3 { margin-bottom: 1rem; }

/* ===== TIME DISPLAY (已内嵌到hero，保留time-dot供hero-time-inline使用) ===== */
.time-bar { display: none; }

.time-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5af5a0;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

/* ===== DIVIDER ===== */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn.loading::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-left: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    header { padding: 0 1rem; }
    .header-title { font-size: 0.95rem; }
    .hero-banner { padding: 2.5rem 1rem; }
    .hero-banner h1 { font-size: 1.5rem; }
    .container { margin: 1.5rem auto; padding: 0 1rem; }
    .form-container { padding: 1.75rem 1.25rem; }
    .admin-login-box { padding: 2rem 1.5rem; }
}
