/* ============================================================
   前台官网样式
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
    font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
    background: #f7f9fc;
    color: #2b3445;
    font-size: 15px;
    line-height: 1.7;
}
a { color: #3b5bdb; text-decoration: none; transition: all .2s; }
a:hover { color: #2c46b3; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eef0f5;
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo {
    width: 42px; height: 42px; border-radius: 12px;
    background: linear-gradient(135deg, #5b7cfa, #7b5bfa);
    color: #fff; font-weight: 700; font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(91,124,250,.35);
}
.brand .logo span { font-size: 14px; font-weight: 400; opacity: .85; margin-left: 1px; }
.brand-text h1 { font-size: 17px; font-weight: 600; }
.brand-text p { font-size: 12px; color: #8893a7; line-height: 1.2; }

.site-nav { display: flex; gap: 6px; }
.site-nav a {
    padding: 8px 16px; border-radius: 8px;
    color: #5a6577; font-size: 14px; font-weight: 500;
}
.site-nav a:hover { background: #f0f3fb; color: #3b5bdb; }
.site-nav a.active { background: #3b5bdb; color: #fff; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, #5b7cfa 0%, #7b5bfa 50%, #b45bf5 100%);
    color: #fff; padding: 80px 0 70px;
}
.hero-inner h1 { font-size: 42px; font-weight: 700; margin-bottom: 12px; letter-spacing: 1px; }
.hero-inner .hero-sub { font-size: 18px; opacity: .9; margin-bottom: 24px; }
.hero-ad { display: flex; flex-wrap: wrap; gap: 10px; }
.ad-tag {
    background: rgba(255,255,255,.18);
    padding: 6px 14px; border-radius: 20px;
    font-size: 13px; backdrop-filter: blur(4px);
}

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 {
    font-size: 28px; font-weight: 700; color: #2b3445; margin-bottom: 8px;
    position: relative; display: inline-block;
}
.section-header h2::after {
    content: ''; display: block; width: 40px; height: 3px;
    background: linear-gradient(90deg, #5b7cfa, #7b5bfa);
    border-radius: 2px; margin: 10px auto 0;
}
.section-header p { color: #8893a7; font-size: 15px; }

/* ---------- Products Grid ---------- */
.products-grid {
    display: grid; gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}
.product-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(91,124,250,.18); }
.product-cover {
    height: 160px; background: linear-gradient(135deg, #eef2ff, #f4f0ff);
    display: flex; align-items: center; justify-content: center;
    background-size: cover; background-position: center;
}
.product-logo {
    width: 64px; height: 64px; border-radius: 14px;
    object-fit: contain; background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.product-logo.placeholder {
    background: linear-gradient(135deg, #5b7cfa, #7b5bfa);
    color: #fff; font-size: 28px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.product-body { padding: 22px 24px 24px; }
.product-body h3 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.product-body .subtitle { color: #8893a7; font-size: 14px; margin-bottom: 14px; }
.advantages { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.adv-tag {
    background: #f0f3fb; color: #3b5bdb;
    padding: 3px 10px; border-radius: 6px;
    font-size: 12px; font-weight: 500;
}
.product-actions { display: flex; gap: 10px; }
.btn-detail {
    flex: 1; text-align: center; padding: 10px;
    border: 1px solid #dfe3ee; border-radius: 8px;
    color: #3b5bdb; font-weight: 500; font-size: 14px;
}
.btn-detail:hover { background: #f0f3fb; border-color: #3b5bdb; }
.btn-download {
    flex: 1; text-align: center; padding: 10px;
    background: linear-gradient(135deg, #5b7cfa, #7b5bfa);
    color: #fff; border-radius: 8px; font-weight: 500; font-size: 14px;
    box-shadow: 0 4px 14px rgba(91,124,250,.35);
}
.btn-download:hover { opacity: .92; color: #fff; }

.product-card.small { cursor: pointer; }
.product-card.small:hover { transform: translateY(-4px); }
.product-card.small .product-cover { height: 120px; }
.product-card.small .product-logo { width: 48px; height: 48px; }
.product-card.small .product-logo.placeholder { font-size: 22px; }

/* ---------- Links Grid ---------- */
.links-section { background: #f7f9fc; }
.links-grid {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.link-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px; background: #fff;
    border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.04);
    transition: transform .2s, box-shadow .2s;
}
.link-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(91,124,250,.15); color: #3b5bdb; }
.link-logo {
    width: 40px; height: 40px; border-radius: 10px; object-fit: contain;
    background: #f0f3fb; flex-shrink: 0;
}
.link-logo.placeholder {
    background: linear-gradient(135deg, #5b7cfa, #7b5bfa);
    color: #fff; font-size: 18px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.link-info { flex: 1; min-width: 0; }
.link-name { font-size: 14px; font-weight: 600; color: #2b3445; }
.link-desc { font-size: 12px; color: #8893a7; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Product Detail ---------- */
.product-hero {
    background: linear-gradient(135deg, #5b7cfa 0%, #7b5bfa 100%);
    color: #fff; padding: 60px 0 50px;
}
.product-hero-inner {
    display: flex; gap: 40px; align-items: center;
}
.product-hero-logo {
    width: 120px; height: 120px; border-radius: 28px;
    background: rgba(255,255,255,.18); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.product-hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.product-hero-logo .ph {
    font-size: 48px; font-weight: 700; color: #fff;
}
.product-hero-info h1 { font-size: 34px; font-weight: 700; margin-bottom: 8px; }
.product-hero-info .subtitle { font-size: 16px; opacity: .9; margin-bottom: 16px; }
.product-hero-info .advantages { margin-bottom: 24px; }
.product-hero-info .adv-tag {
    background: rgba(255,255,255,.2); color: #fff;
}
.hero-buttons { display: flex; gap: 12px; }
.btn-primary {
    padding: 12px 28px; border-radius: 10px; font-weight: 600;
    background: #fff; color: #3b5bdb;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.btn-primary:hover { transform: translateY(-1px); color: #3b5bdb; }
.btn-ghost {
    padding: 12px 28px; border-radius: 10px; font-weight: 500;
    background: rgba(255,255,255,.18); color: #fff;
    border: 1px solid rgba(255,255,255,.35);
}
.btn-ghost:hover { background: rgba(255,255,255,.3); color: #fff; }

/* ---------- Features Content ---------- */
.features-content {
    background: #fff; border-radius: 16px; padding: 40px 48px;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.features-content h3 { font-size: 20px; font-weight: 600; margin: 24px 0 10px; color: #2b3445; }
.features-content h3:first-child { margin-top: 0; }
.features-content p { color: #5a6577; margin-bottom: 12px; line-height: 1.8; }
.features-content ul { padding-left: 22px; margin-bottom: 12px; }
.features-content li { color: #5a6577; margin-bottom: 6px; line-height: 1.7; }
.features-content strong { color: #2b3445; }

/* ---------- Ad Box ---------- */
.ad-section { padding: 30px 0 60px; }
.ad-box {
    background: #fff; border-radius: 12px; padding: 20px 24px;
    border-left: 4px solid #5b7cfa;
}
.ad-line { color: #5a6577; font-size: 14px; margin-bottom: 4px; }
.ad-line:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
    background: #1f2637; color: #b4bcd0; padding: 50px 0 0;
}
.footer-grid {
    display: grid; gap: 40px;
    grid-template-columns: repeat(4, 1fr);
    padding-bottom: 40px;
}
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.footer-col p { font-size: 13px; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #b4bcd0; font-size: 13px; }
.footer-col a:hover { color: #fff; }
.copyright {
    border-top: 1px solid rgba(255,255,255,.08);
    text-align: center; padding: 22px 0;
    font-size: 13px; color: #7a8599;
}
.copyright .icp {
    display: inline-block; margin-left: 14px;
}
.copyright .icp a {
    color: #7a8599; text-decoration: none;
    transition: color .2s;
}
.copyright .icp a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .site-header .container { height: auto; padding: 14px 16px; flex-wrap: wrap; }
    .site-nav { width: 100%; overflow-x: auto; padding-top: 10px; }
    .hero-inner h1 { font-size: 28px; }
    .hero-inner .hero-sub { font-size: 15px; }
    .section { padding: 40px 0; }
    .section-header h2 { font-size: 22px; }
    .product-hero-inner { flex-direction: column; text-align: center; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .features-content { padding: 24px; }
}
