/* ========================================
   LawCheng 专利数据库 - 全局样式
   设计风格：专业、简洁、类Google Patents
   ======================================== */

/* CSS变量 */
:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #e8f0fe;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-light: #80868b;
    --border: #dadce0;
    --bg-white: #ffffff;
    --bg-gray: #f8f9fa;
    --bg-hover: #f1f3f4;
    --success: #34a853;
    --warning: #ea8600;
    --error: #d93025;
    --shadow-sm: 0 1px 2px rgba(60,64,67,0.15);
    --shadow-md: 0 2px 6px rgba(60,64,67,0.15);
    --shadow-lg: 0 4px 16px rgba(60,64,67,0.18);
    --radius: 8px;
    --radius-lg: 12px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-primary);
    background: var(--bg-gray);
    line-height: 1.6;
    font-size: 14px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ========== Header ========== */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}
.logo-icon { font-size: 24px; }
.logo-text {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
}
.nav-links {
    display: flex;
    gap: 24px;
    flex: 1;
}
.nav-links a {
    color: var(--text-secondary);
    padding: 20px 4px;
    font-size: 14px;
    position: relative;
    text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    text-decoration: none;
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.header-search-mini form {
    display: flex;
    align-items: center;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
}
.header-search-mini input {
    border: none;
    background: transparent;
    outline: none;
    width: 160px;
    font-size: 13px;
}
.header-search-mini button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--border);
}
.btn-outline:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}
.btn-sm { padding: 5px 14px; font-size: 13px; }
.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ========== Search Box (Hero) ========== */
.hero-search {
    text-align: center;
    padding: 80px 24px 40px;
    max-width: 720px;
    margin: 0 auto;
}
.hero-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 36px;
}
.search-box {
    width: 100%;
}
.search-input-wrap {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border: 2px solid var(--primary);
    border-radius: 28px;
    padding: 4px 4px 4px 20px;
    box-shadow: var(--shadow-lg);
    transition: box-shadow 0.2s;
}
.search-input-wrap:focus-within {
    box-shadow: 0 4px 20px rgba(26,115,232,0.3);
}
.search-icon { flex-shrink: 0; margin-right: 10px; }
.search-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 12px 4px;
    min-width: 0;
}
.search-input-wrap input::placeholder { color: var(--text-light); }
.btn-search {
    border-radius: 22px;
    padding: 10px 28px;
    font-size: 15px;
    flex-shrink: 0;
}
.btn-search-sm {
    border-radius: 18px;
    padding: 7px 18px;
    font-size: 13px;
    flex-shrink: 0;
}
.hot-hints {
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.hint-label { color: var(--text-light); }
.hint-sep { color: var(--border); }
.hint-advanced {
    color: var(--primary) !important;
    font-weight: 600;
}
.hint-advanced:hover {
    text-decoration: underline;
}
.hot-hints a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 12px;
    background: var(--bg-gray);
}
.hot-hints a:hover {
    background: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
}

/* Compact search bar for results page */
.search-bar-sticky {
    background: var(--bg-white);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 64px;
    z-index: 50;
}
.search-input-wrap.compact {
    border-width: 1px;
    box-shadow: var(--shadow-sm);
    max-width: 560px;
    margin: 0 auto;
}
.search-input-wrap.compact input { font-size: 14px; padding: 8px 4px; }

/* ========== 高级检索模式切换 ========== */
.search-mode-tabs {
    display: flex;
    gap: 0;
    max-width: 560px;
    margin: 0 auto 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.mode-tab {
    flex: 1;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-white);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.mode-tab:hover { background: var(--bg-gray); }
.mode-tab.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
}

/* ========== 高级检索表单 ========== */
.search-form-advanced {
    max-width: 560px;
    margin: 0 auto;
}
.adv-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}
.adv-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.adv-field label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}
.adv-field input {
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}
.adv-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(26,115,232,0.15); }

.adv-date-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.date-field { flex: 1; }
.date-sep {
    color: var(--text-light);
    font-size: 13px;
    padding-top: 18px;
}

.adv-bool-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}
.adv-bool-row select {
    padding: 6px 8px;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
}

.adv-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* ========== Stats Section ========== */
.stats-section {
    max-width: 900px;
    margin: 48px auto 0;
    padding: 0 24px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}
.stat-unit {
    font-size: 16px;
    font-weight: 500;
}
.stat-label {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 13px;
}

/* ========== Features Section ========== */
.features-section {
    max-width: 900px;
    margin: 56px auto 0;
    padding: 0 24px;
}
.section-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.feature-icon { font-size: 32px; margin-bottom: 12px; }
.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}
.feature-card p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

/* ========== Coverage Tags ========== */
.coverage-section {
    max-width: 900px;
    margin: 48px auto 0;
    padding: 0 24px;
}
.coverage-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.cov-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-secondary);
}
.cov-tag.cov-primary {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 500;
}
.cov-tag.more {
    color: var(--text-light);
    border-style: dashed;
}

/* ========== CTA Section ========== */
.cta-section {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    text-align: center;
    padding: 56px 24px;
    margin-top: 64px;
}
.cta-inner h3 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 12px;
}
.cta-inner p {
    opacity: 0.9;
    margin-bottom: 24px;
    font-size: 15px;
}
.cta-section .btn-primary {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}
.cta-section .btn-primary:hover {
    background: var(--bg-gray);
}

/* ========== Footer ========== */
.site-footer {
    background: var(--text-primary);
    color: #aaa;
    padding: 40px 24px 20px;
    margin-top: 64px;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.footer-col strong {
    color: #ddd;
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
}
.footer-col p,
.footer-col a {
    color: #999;
    font-size: 13px;
    display: block;
    margin-bottom: 6px;
    text-decoration: none;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.disclaimer-text { font-size: 12px; line-height: 1.6; color: #777; }
.copyright {
    text-align: center;
    padding-top: 24px;
    margin-top: 32px;
    border-top: 1px solid #333;
    font-size: 12px;
    color: #666;
}
.simple-footer {
    text-align: center;
    padding: 20px 24px;
    margin-top: 0;
}

/* ========== Search Results Layout ========== */
.search-main { padding-top: 0; }
.search-layout {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    padding: 0 24px;
    align-items: flex-start;
}
.search-results-area {
    flex: 1;
    min-width: 0;
}
.search-sidebar {
    width: 260px;
    flex-shrink: 0;
}

/* Results toolbar */
.results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-secondary);
}
.result-count strong { color: var(--text-primary); }
.result-time { color: var(--text-light); font-size: 12px; }
.toolbar-right select {
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 13px;
    background: var(--bg-white);
}

/* Result Card */
.results-list { padding: 16px 0; }
.result-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: box-shadow 0.15s;
    border: 1px solid transparent;
}
.result-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}
.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
}
.pub-number {
    color: var(--primary);
    font-family: "Courier New", monospace;
    font-weight: 600;
    font-size: 14px;
}
.pub-date { color: var(--text-light); }
.kind-code {
    background: var(--primary-light);
    color: var(--primary);
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}
.result-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
    word-break: break-word;
}
.result-abstract {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.result-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-light);
}
.meta-item { display: inline-flex; align-items: center; gap: 3px; }

/* Sidebar filters */
.sidebar-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}
.sidebar-section h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}
.filter-item input[type="checkbox"],
.filter-item input[type="radio"] { accent-color: var(--primary); }

/* Pagination */
.pagination { padding: 24px 0; text-align: center; }
.page-btns { display: inline-flex; gap: 4px; }
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.15s;
}
.page-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    text-decoration: none;
}
.page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Loading spinner */
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* No results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}
.no-results-icon { font-size: 48px; margin-bottom: 16px; }
.no-results h3 { margin-bottom: 8px; color: var(--text-primary); }
.no-results ul { text-align: left; max-width: 400px; margin: 12px auto; padding-left: 20px; }
.no-results li { margin-bottom: 4px; font-size: 13px; }

/* ========== Detail Page ========== */
.detail-main { padding: 24px 0 48px; }
.detail-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 28px;
    padding: 0 24px;
}
.detail-content { flex: 1; min-width: 0; }
.detail-sidebar { width: 240px; flex-shrink: 0; }

.breadcrumb {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb span { color: var(--text-light); }

.detail-header { margin-bottom: 24px; }
.detail-header h1 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}
.detail-badges { display: flex; gap: 8px; }
.badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}
.badge-country { background: var(--primary-light); color: var(--primary); }
.badge-kind { background: #fef7e0; color: #b06000; }

.detail-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.detail-section h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.info-table { width: 100%; border-collapse: collapse; }
.info-table th {
    text-align: left;
    width: 120px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    vertical-align: top;
    background: var(--bg-gray);
    border-radius: 4px;
}
.info-table td {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.6;
}

.abstract-box p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.fulltext-locked {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-gray);
    border-radius: var(--radius);
}
.lock-icon { font-size: 40px; margin-bottom: 12px; }
.fulltext-locked p { margin-bottom: 16px; color: var(--text-secondary); }

.description-content pre,
.claims-content pre {
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: "Courier New", Consolas, monospace;
    background: var(--bg-gray);
    padding: 16px;
    border-radius: 6px;
    color: var(--text-primary);
    max-height: 600px;
    overflow-y: auto;
}

/* Family list */
.family-list { display: flex; flex-direction: column; gap: 6px; }
.family-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.15s;
}
.family-item:hover {
    background: var(--bg-hover);
    text-decoration: none;
}
.family-country {
    font-weight: 600;
    color: var(--primary);
    min-width: 50px;
}
.family-number {
    font-family: "Courier New", monospace;
    color: var(--text-secondary);
    min-width: 140px;
}
.family-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
}

/* Detail sidebar actions */
.action-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}
.action-card h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}
.service-list { list-style: none; }
.service-list li { margin-bottom: 8px; }
.service-list a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    padding: 4px 0;
}
.service-list a:hover { color: var(--primary); }

/* Error state */
.error-state {
    text-align: center;
    padding: 80px 20px;
}

/* ========== Auth Pages ========== */
.auth-page { background: var(--bg-gray); }
.auth-main {
    max-width: 480px;
    margin: 48px auto;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.auth-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-md);
    flex: 1;
}
.auth-card h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}
.auth-desc {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 24px;
}
.auth-note {
    text-align: center;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 16px;
}
.auth-note a { color: var(--primary); }
.auth-sidebar {
    width: 220px;
    flex-shrink: 0;
}
.auth-sidebar h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
}
.benefit-list { list-style: none; }
.benefit-list li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 5px 0;
}

/* ========== Forms ========== */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.required { color: var(--error); }
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
    background: var(--bg-white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}
.form-group textarea { resize: vertical; min-height: 72px; }
.form-divider {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 16px 0 10px;
    padding: 8px 0;
    border-top: 1px dashed var(--border);
}
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 20px;
}
.checkbox-group label {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.checkbox-group input { accent-color: var(--primary); }

/* ========== Modals ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.15s ease;
}
.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 420px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.2s ease;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}
.modal-close:hover { color: var(--text-primary); }
.modal-inquiry h3,
.modal-login h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}
.modal-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ========== Toast ========== */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #323232;
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 2000;
    animation: fadeIn 0.2s ease;
    box-shadow: var(--shadow-lg);
}
.toast.success { background: var(--success); }
.toast.error { background: var(--error); }

/* ========== About Page ========== */
.about-hero {
    text-align: center;
    padding: 48px 24px 32px;
    background: linear-gradient(135deg, var(--primary), #0d47a1);
    color: #fff;
    margin-bottom: 32px;
}
.about-hero h1 { font-size: 28px; font-weight: 600; margin-bottom: 8px; }
.about-hero p { opacity: 0.9; font-size: 15px; }
.about-content { max-width: 800px; margin: 0 auto; padding: 0 24px 48px; }
.about-text h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 28px 0 12px;
    color: var(--text-primary);
}
.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
    font-size: 14px;
}
.about-text ul { padding-left: 20px; margin-bottom: 12px; }
.about-text li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 4px;
    font-size: 14px;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 16px 0;
}
.service-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.service-icon { font-size: 28px; margin-bottom: 8px; }
.service-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.service-item p { font-size: 13px; color: var(--text-secondary); margin: 0; }
.contact-info p { font-size: 14px; color: var(--text-secondary); margin-bottom: 4px; }

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .header-inner { padding: 0 16px; gap: 16px; }
    .nav-links { display: none; }
    .hero-title { font-size: 26px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
    .search-layout { flex-direction: column; }
    .search-sidebar { width: 100%; }
    .detail-layout { flex-direction: column; }
    .detail-sidebar { width: 100%; }
    .auth-main { flex-direction: column; max-width: 100%; padding: 0 16px; }
    .auth-sidebar { width: 100%; }
    .service-grid { grid-template-columns: 1fr; }
}
