:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg: #ffffff;
    --bg-gray: #f8fafc;
    --bg-dark: #0f172a;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.06);
    --radius: 8px;
    --radius-lg: 12px;
    --max-width: 1200px;
    --header-height: 64px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }

.home-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: all 0.3s;
}

.home-header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 22px;
    color: var(--primary);
    flex-shrink: 0;
    margin-left: -50px;
}

.header-logo:hover { color: var(--primary-dark); }

.logo-text { letter-spacing: -0.5px; }

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 15px;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    line-height: 1.5;
}

.btn-sm { padding: 6px 14px; font-size: 13px; }

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border);
}

.btn-outline:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

.mobile-menu-overlay.active { display: block; }

.home-main { min-height: calc(100vh - var(--header-height)); padding-top: var(--header-height); }

.home-footer {
    background: var(--bg-dark);
    color: #cbd5e1;
    padding: 60px 0 0;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #94a3b8;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

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

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
    font-size: 14px;
    color: #94a3b8;
    transition: color 0.2s;
}

.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.section { padding: 80px 24px; }

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #fff;
    padding: 120px 24px 80px;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-section canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero-desc {
    font-size: 18px;
    color: #ffff;
    margin-bottom: 36px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn { padding: 12px 32px; font-size: 16px; }

.hero-actions .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.hero-actions .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.hero-actions .btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.content-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.content-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.content-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-gray);
}

.content-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-card-body h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-card-body h3 a:hover { color: var(--primary); }

.content-card-body .summary {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.content-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.app-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.app-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.app-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.app-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    flex-shrink: 0;
    overflow: hidden;
}

.app-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-card-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.app-card-info .version {
    font-size: 12px;
    color: var(--text-light);
}

.app-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
}

.app-price {
    font-weight: 600;
    color: var(--primary);
}

.license-section {
    padding: 80px 24px;
    background: var(--bg-gray);
}

.license-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.license-form {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.license-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.license-input:focus { border-color: var(--primary); }

.license-input::placeholder { color: var(--text-light); }

.license-result {
    display: none;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.license-result.show { display: block; }

.license-result.authorized {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.license-result.unauthorized {
    background: #fef2f2;
    border-color: #fecaca;
}

.license-result h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.license-result.authorized h4 { color: #16a34a; }
.license-result.unauthorized h4 { color: #dc2626; }

.license-detail {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 8px 16px;
    font-size: 14px;
}

.license-detail dt {
    color: var(--text-secondary);
    text-align: right;
}

.license-detail dd { color: var(--text); }

.license-certificate {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border: 2px solid #16a34a;
    border-radius: var(--radius);
    text-align: center;
}

.license-certificate h5 {
    font-size: 16px;
    color: #16a34a;
    margin-bottom: 12px;
}

.license-certificate .cert-domain {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.license-certificate .cert-info {
    font-size: 13px;
    color: var(--text-secondary);
}

.page-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    color: #fff;
    padding: 100px 24px 60px;
    text-align: center;
}

.page-banner h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-banner p {
    font-size: 16px;
    color: #94a3b8;
    max-width: 500px;
    margin: 0 auto;
}

.breadcrumb {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; color: var(--text-light); }

.article-detail {
    max-width: 1220px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.article-detail h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.article-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text);
}

.article-content p { margin-bottom: 16px; }
.article-content img { border-radius: var(--radius); margin: 16px 0; }
.article-content h2 { font-size: 22px; margin: 32px 0 16px; }
.article-content h3 { font-size: 18px; margin: 24px 0 12px; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 16px; }
.article-content blockquote {
    padding: 16px 20px;
    background: var(--bg-gray);
    border-left: 4px solid var(--primary);
    margin: 16px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.pagination a:hover,
.pagination span.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination .disabled {
    color: var(--text-light);
    pointer-events: none;
}

.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-light);
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state p { font-size: 16px; }

.about-section { padding: 80px 24px; }

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    align-items: center;
}

.about-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.about-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-gray);
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 48px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.stat-card {
    text-align: center;
    padding: 24px;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

@media screen and (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 768px) {
    :root { --header-height: 56px; }

    .header-nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg);
        padding: 16px;
        flex-direction: column;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .header-nav.mobile-open { display: flex; }

    .header-actions { display: none; }
    .mobile-menu-btn { display: flex; }

    .hero-title { font-size: 32px; }
    .hero-desc { font-size: 16px; }
    .hero-section { padding: 100px 24px 60px; min-height: 480px; }

    .section-title { font-size: 26px; }
    .section { padding: 48px 16px; }

    .features-grid { grid-template-columns: 1fr; }
    .content-grid { grid-template-columns: 1fr; }
    .app-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }

    .license-form { flex-direction: column; }
    .license-box { padding: 24px; }

    .page-banner h1 { font-size: 28px; }
    .article-detail h1 { font-size: 24px; }
}
