/* TaxDeer官网样式 */

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --background: #ffffff;
    --surface: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
}

* {
    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;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
}

a {
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Banner */
.top-banner {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
}

.top-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.top-banner a {
    color: #fcd34d;
    text-decoration: underline;
    font-weight: 600;
}

.top-banner a:hover {
    color: #fbbf24;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    min-height: 72px;
    padding: 12px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.35rem;
    font-weight: 700;
    flex-shrink: 0;
    max-width: 200px;
    overflow: hidden;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-img-wrapper {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    overflow: hidden;
}

.logo-img {
    width: 36px !important;
    height: 36px !important;
    object-fit: contain;
}
    display: block;
}

.logo-text {
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    list-style: none;
    gap: 10px;
    margin-left: auto;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: #eff6ff;
}

.nav-links a[aria-current="page"] {
    color: var(--primary-color);
    background: #dbeafe;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.15);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: white;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    padding: 64px 0 56px;
    min-height: auto;
    background: linear-gradient(135deg, #E6F0FF 0%, #E2E2FF 50%, #D9E7FF 100%);
    text-align: center;
}

.hero-container {
    max-width: 1040px;
}

.hero-brand {
    margin-bottom: 28px;
}

.hero-logo-container {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    margin-left: auto;
    margin-right: auto;
}

.hero-logo {
    width: 104px !important;
    height: 104px !important;
    max-width: 104px !important;
    max-height: 104px !important;
    object-fit: contain !important;
    display: block;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111827;
    letter-spacing: -0.02em;
}

.hero-slogan {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 16px;
    font-weight: 500;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #6B7280;
    margin-bottom: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-notice {
    text-align: left;
    max-width: 960px;
    margin: 0 auto;
    padding: 18px 28px;
    border-radius: 18px;
    background: rgba(255, 250, 240, 0.88);
    border: 1px solid rgba(245, 158, 11, 0.28);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.hero-notice-title {
    display: table;
    margin: 0 auto 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.8125rem;
    font-weight: 700;
    text-align: center;
}

.hero-notice p {
    margin: 0 0 10px;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.7;
}

.hero-notice p:last-child {
    margin-bottom: 0;
}

.btn-download-windows {
    background: #111827;
    color: white;
    padding: 16px 32px;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-download-windows:hover {
    background: #1F2937;
    transform: scale(1.02);
    color: white;
}

.download-version {
    font-size: 0.875rem;
    color: #9CA3AF;
    margin-top: 8px;
}

.download-coming-soon {
    text-align: center;
}

.download-hint {
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 8px;
}

.download-alt {
    font-size: 0.875rem;
    color: #9CA3AF;
    margin-top: 16px;
}

.download-alt a {
    color: #4A5BFF;
}

.btn-disabled {
    background: #E5E7EB;
    color: #9CA3AF;
    padding: 16px 32px;
    font-size: 1.125rem;
    border-radius: 999px;
    cursor: not-allowed;
    display: inline-block;
}

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

/* Features Section */
.features {
    padding: 80px 0;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px;
    background: var(--surface);
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: var(--surface);
}

.how-it-works h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 48px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.step {
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta .btn-primary:hover {
    background: var(--surface);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 56px 0 24px;
    margin-top: 64px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-section a {
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Page Content */
.page-content {
    padding: 56px 0 24px;
    min-height: calc(100vh - 72px - 220px);
}

.page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.page-content h2 {
    font-size: 1.75rem;
    margin: 32px 0 16px;
}

.page-content h3 {
    font-size: 1.25rem;
    margin: 24px 0 12px;
}

.page-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.page-content ul,
.page-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.page-content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* Download Page */
.download-section {
    text-align: center;
    padding: 48px 0;
}

.download-intro {
    max-width: 760px;
    margin: 12px auto 36px;
    color: var(--text-secondary);
}

.download-platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.download-platform-box {
    text-align: left;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.download-platform-box.available {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.download-platform-box.pending {
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.download-platform-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.download-platform-head h2 {
    margin: 0 0 4px;
    font-size: 1.35rem;
}

.download-platform-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.version {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.platform-requirements {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

.platform-requirements h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.platform-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.platform-requirements li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    position: relative;
    padding-left: 18px;
}

.platform-requirements li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Demo Page */
.demo-container {
    background: var(--surface);
    border-radius: 12px;
    padding: 32px;
    margin-top: 24px;
}

.demo-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

.demo-table th,
.demo-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.demo-table th {
    background: var(--background);
    font-weight: 600;
}

.demo-table tr:hover {
    background: var(--background);
}

/* FAQ Page */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
}

.faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.faq-answer {
    color: var(--text-secondary);
}

/* Docs Page */
.docs-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 48px;
    margin-top: 24px;
}

.docs-sidebar {
    position: sticky;
    top: 88px;
}

.docs-sidebar ul {
    list-style: none;
}

.docs-sidebar li {
    margin-bottom: 8px;
}

.docs-sidebar a {
    text-decoration: none;
    color: var(--text-secondary);
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.docs-sidebar a:hover,
.docs-sidebar a.active {
    background: var(--surface);
    color: var(--primary-color);
}

.docs-content {
    max-width: 800px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        min-height: auto;
        padding: 14px 0;
    }

    .logo {
        font-size: 1.25rem;
        gap: 8px;
    }

    .logo-img {
        height: 32px;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
        margin-left: 0;
    }

    .nav-links li {
        flex: 0 0 auto;
    }

    .nav-links a {
        min-height: 36px;
        padding: 0 12px;
        font-size: 0.95rem;
    }

    .hero {
        padding: 56px 0;
    }

    .hero-logo-container {
        width: 80px;
        height: 80px;
        border-radius: 16px;
    }

    .hero-logo {
        width: 56px !important;
        height: 56px !important;
        max-width: 56px !important;
        max-height: 56px !important;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-content {
        padding-top: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .docs-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .docs-sidebar {
        position: static;
    }
}
