/* ==================== 页面通用样式 ==================== */
.site-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-decoration: none;
}
.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}
.logo-sub {
    font-size: 12px;
    color: #94a3b8;
    letter-spacing: 1px;
}
.main-nav {
    display: flex;
    gap: 4px;
}
.nav-link {
    padding: 8px 14px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(99,102,241,0.2);
}
.nav-link.active {
    background: rgba(99,102,241,0.3);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn-login {
    padding: 6px 20px;
    background: #6366f1;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}
.btn-login:hover { background: #4f46e5; }
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* 页面主体 */
.site-main {
    min-height: calc(100vh - 64px - 200px);
}

/* 页面Banner */
.page-banner {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 60px 24px;
    text-align: center;
}
.page-banner h1 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 12px;
}
.page-banner p {
    font-size: 16px;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

/* 内容区域 */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 32px;
}
.card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}
.card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}
.card-icon {
    font-size: 36px;
    margin-bottom: 16px;
}
.card h3 {
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 8px;
}
.card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
}
.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.card-tag {
    padding: 2px 10px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 12px;
    font-size: 12px;
}
.card-action {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 20px;
    background: #6366f1;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
}
.card-action:hover { background: #4f46e5; }

/* 下载卡片 */
.download-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.download-card .card-meta {
    flex: 1;
}
.download-btn {
    padding: 8px 24px;
    background: #10b981;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
    white-space: nowrap;
}
.download-btn:hover { background: #059669; }

/* 表单 */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 14px;
    color: #374151;
    margin-bottom: 6px;
    font-weight: 500;
}
.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.form-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    min-height: 120px;
    resize: vertical;
    box-sizing: border-box;
}
.btn-primary {
    padding: 10px 28px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary:hover { background: #4f46e5; }

/* 两栏布局 */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 32px;
}

/* 信息列表 */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.info-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
}
.info-label {
    color: #64748b;
    font-size: 14px;
    min-width: 100px;
}
.info-value {
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
}

/* 页脚 */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 48px 24px 24px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-cols {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1.5fr;
    gap: 32px;
    margin-bottom: 32px;
}
.footer-col h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 12px;
}
.footer-col p {
    font-size: 13px;
    line-height: 1.8;
}
.footer-col a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    padding: 3px 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-brand { min-width: 0; }
.footer-brand p { word-break: break-word; line-height: 1.8; }
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}
.footer-bottom a {
    color: #64748b;
    text-decoration: none;
}
.footer-bottom a:hover { color: #94a3b8; }

/* 响应式 */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .main-nav.show {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #1e293b;
        padding: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    .mobile-menu-btn { display: block; }
    .card-grid { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .page-banner h1 { font-size: 24px; }
}
