/* ============================================
   DeepGEO - 主样式表（基于 deepgeo.org.cn 风格）
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: #1a1a2e;
    line-height: 1.6;
    background: #f8f9fb;
    min-height: 100vh;
}
a { color: #1a73e8; text-decoration: none; }
a:hover { color: #1557b0; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ---------- Container ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-xl { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* ---------- Site Header (Frontend) ---------- */
.site-header {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}
.logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    font-weight: 800;
}
.logo-text { color: #fff; }
.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-link {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #94a3b8;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
}
.nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(59,130,246,0.15);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---------- Legacy Navbar (compat) ---------- */
.navbar {
    background: #fff;
    border-bottom: 1px solid #e8eaed;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.navbar-brand { font-size: 1.4rem; font-weight: 700; color: #1a73e8; display: flex; align-items: center; gap: 8px; }
.navbar-brand img { height: 36px; }
.navbar-nav { display: flex; gap: 4px; }
.navbar-nav a {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    transition: all 0.2s;
}
.navbar-nav a:hover, .navbar-nav a.active { color: #1a73e8; background: #e8f0fe; }
.navbar-user { display: flex; align-items: center; gap: 12px; }
.navbar-user .btn { font-size: 0.85rem; padding: 6px 16px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.btn-primary { background: #1a73e8; color: #fff; border-color: #1a73e8; }
.btn-primary:hover { background: #1557b0; border-color: #1557b0; color: #fff; }
.btn-outline { background: transparent; color: #1a73e8; border-color: #1a73e8; }
.btn-outline:hover { background: #1a73e8; color: #fff; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-sm { padding: 4px 12px; font-size: 0.8rem; }
.btn-block { display: block; width: 100%; }
.btn-danger { background: #dc3545; color: #fff; border-color: #dc3545; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, #e8f0fe 0%, #d2e3fc 30%, #f8f9fb 100%);
    padding: 80px 0 60px;
    text-align: center;
}
.hero h1 { font-size: 2.6rem; font-weight: 800; color: #1a1a2e; margin-bottom: 16px; line-height: 1.3; }
.hero h1 .highlight { color: #1a73e8; }
.hero p { font-size: 1.15rem; color: #5f6368; max-width: 700px; margin: 0 auto 24px; }
.hero-search {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    border-radius: 50px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}
.hero-search input {
    flex: 1;
    border: none;
    padding: 16px 24px;
    font-size: 1rem;
    outline: none;
}
.hero-search button {
    background: #1a73e8;
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

/* ---------- Section ---------- */
.section { padding: 60px 0; }
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.section-title p { color: #5f6368; font-size: 1rem; }

/* ---------- Features Grid ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1px solid #e8eaed;
    transition: all 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.feature-card .feature-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 16px; }
.feature-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: #5f6368; line-height: 1.5; }

.icon-blue { background: #e8f0fe; color: #1a73e8; }
.icon-green { background: #e6f4ea; color: #137333; }
.icon-purple { background: #f3e8fd; color: #7b1fa2; }
.icon-orange { background: #fef3e0; color: #e37400; }

/* ---------- Diagnosis Form ---------- */
.diagnosis-form {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #333;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #dadce0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: #fff;
}
.form-group input:focus,
.form-group textarea:focus { border-color: #1a73e8; outline: none; box-shadow: 0 0 0 3px rgba(26,115,232,0.1); }
.form-error { color: #dc3545; font-size: 0.85rem; padding: 8px 12px; background: #fce8ec; border-radius: 6px; margin-bottom: 16px; }
.form-footer { display: flex; justify-content: space-between; margin-top: 16px; font-size: 0.85rem; }

/* ---------- Cards & Grids ---------- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.info-card {
    background: #f1f3f4;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.info-card h4 { font-size: 0.85rem; color: #5f6368; margin-bottom: 8px; }
.info-card .big-text { font-size: 1.8rem; font-weight: 800; color: #1a73e8; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin-bottom: 20px; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #e8eaed; }
th { background: #f8f9fb; font-weight: 600; color: #333; white-space: nowrap; }
tr:hover { background: #f8f9fb; }

/* ---------- Page Header ---------- */
.page-header {
    background: linear-gradient(135deg, #e8f0fe 0%, #f8f9fb 100%);
    padding: 50px 0 30px;
    text-align: center;
}
.page-header h1 { font-size: 2.2rem; font-weight: 700; color: #1a1a2e; }
.page-header p { font-size: 1.05rem; color: #5f6368; margin-top: 4px; }

/* ---------- Pricing ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.pricing-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1px solid #e8eaed;
    text-align: center;
    position: relative;
}
.pricing-card.featured { border: 2px solid #1a73e8; box-shadow: 0 4px 20px rgba(26,115,232,0.15); }
.pricing-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; }
.pricing-card .price { font-size: 2.6rem; font-weight: 800; color: #1a73e8; margin-bottom: 4px; }
.pricing-card .price-original { font-size: 0.9rem; color: #999; text-decoration: line-through; margin-bottom: 8px; }
.pricing-card .price-desc { font-size: 0.85rem; color: #5f6368; margin-bottom: 20px; }
.pricing-card ul { text-align: left; margin-bottom: 24px; }
.pricing-card ul li { padding: 6px 0; font-size: 0.9rem; color: #555; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-methods { display: flex; flex-direction: column; gap: 20px; }
.contact-method h4 { margin-bottom: 8px; }
.wechat-qr-large { display: flex; align-items: center; gap: 12px; }
.wechat-qr-large img { width: 120px; height: 120px; border-radius: 8px; border: 1px solid #e8eaed; }

/* ---------- Footer ---------- */
.site-footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 40px 0;
    font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.footer-grid a { color: #a0a3b1; display: block; padding: 3px 0; font-size: 0.85rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #333; padding-top: 16px; margin-top: 24px; text-align: center; font-size: 0.8rem; color: #888; }

/* ---------- Auth ---------- */
.auth-section { padding: 60px 0; }
.auth-card, .auth-form-wrapper {
    max-width: 440px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.auth-card h2, .auth-form-wrapper h2 { text-align: center; margin-bottom: 24px; font-size: 1.5rem; }

/* ---------- Result Page ---------- */
.result-block {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
    border: 1px solid #e8eaed;
}
.result-block h2 { font-size: 1.2rem; font-weight: 700; color: #1a1a2e; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #1a73e8; }
.result-subtitle { font-size: 0.9rem; color: #5f6368; margin-bottom: 12px; }

.audit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.audit-card {
    background: #f1f3f4;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}
.audit-label { display: block; font-size: 0.8rem; color: #5f6368; margin-bottom: 4px; }
.audit-value { display: block; font-size: 1.3rem; font-weight: 700; color: #1a73e8; }

.findings { background: #fef3e0; border-radius: 8px; padding: 16px; margin-top: 12px; }
.findings h4 { margin-bottom: 8px; }
.findings ul { padding-left: 20px; list-style: disc; }
.findings li { font-size: 0.9rem; color: #555; padding: 2px 0; }
.priority-p0 { color: #dc3545; font-weight: 700; }
.priority-p1 { color: #e37400; font-weight: 600; }
.priority-p2 { color: #1a73e8; }
.status-correct { color: #137333; }
.status-incorrect { color: #dc3545; }
.status-partial { color: #e37400; }

.result-actions-bottom { text-align: center; padding: 24px; display: flex; gap: 12px; justify-content: center; }

/* ---------- Profile ---------- */
.profile-grid { display: grid; grid-template-columns: 280px 1fr; gap: 30px; }
.profile-sidebar { 
    background: #fff; border-radius: 16px; padding: 24px; 
    box-shadow: 0 1px 8px rgba(0,0,0,0.04); border: 1px solid #e8eaed;
}
.user-avatar { width: 64px; height: 64px; border-radius: 50%; background: #1a73e8; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 12px; }
.user-info-card { text-align: center; }
.profile-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.profile-nav a { padding: 8px 12px; border-radius: 6px; font-size: 0.9rem; color: #555; }
.profile-nav a.active, .profile-nav a:hover { background: #e8f0fe; color: #1a73e8; }
.profile-content { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 1px 8px rgba(0,0,0,0.04); border: 1px solid #e8eaed; }

/* ---------- Status Dots ---------- */
.status-pending:before, .status-processing:before, .status-completed:before, .status-failed:before,
.status-paid:before, .status-unpaid:before, .status-refunded:before {
    content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px;
}
.status-pending:before { background: #f9ab00; }
.status-processing:before { background: #1a73e8; }
.status-completed:before { background: #137333; }
.status-failed:before { background: #dc3545; }
.status-paid:before { background: #137333; }
.status-unpaid:before { background: #f9ab00; }
.status-refunded:before { background: #999; }

/* ---------- Toast ---------- */
.toast { 
    position: fixed; top: 20px; right: 20px; z-index: 9999;
    padding: 12px 20px; border-radius: 8px; color: #fff; font-size: 0.9rem;
    animation: slideIn 0.3s ease;
}
.toast-success { background: #137333; }
.toast-error { background: #dc3545; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-muted { color: #5f6368; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.loading { text-align: center; padding: 40px; color: #5f6368; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .main-nav { display: none; }
    .nav-container { padding: 0 16px; }
    .site-header .nav-actions { gap: 6px; }
}
