:root {
    --primary: #1a3a6c;
    --primary-light: #2a5a9c;
    --accent: #e8682c;
    --accent-light: #f08a4c;
    --bg-light: #f5f7fa;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --border: #e0e4e8;
    --radius: 8px;
}

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

a { text-decoration: none; color: var(--primary); }

/* Navbar */
.navbar-qm {
    background: var(--primary);
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.navbar-qm .navbar-brand {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 14px 0;
}
.navbar-qm .nav-link {
    color: rgba(255,255,255,.85) !important;
    padding: 16px 18px !important;
    font-size: .95rem;
    transition: color .2s, background .2s;
}
.navbar-qm .nav-link:hover,
.navbar-qm .nav-link.active {
    color: #fff !important;
    background: var(--primary-light);
}
.navbar-qm .nav-cta {
    background: var(--accent);
    color: #fff !important;
    border-radius: 0;
    margin-left: 10px;
    font-weight: 600;
}
.navbar-qm .nav-cta:hover { background: var(--accent-light); }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    right: -100px;
    top: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}
.hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 16px; }
.hero p { font-size: 1.15rem; opacity: .9; max-width: 600px; }
.hero .btn-accent {
    background: var(--accent);
    color: #fff;
    padding: 14px 36px;
    font-size: 1.15rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    margin-top: 24px;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    transition: transform .2s, box-shadow .2s;
}
.hero .btn-accent:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,104,44,.4); color: #fff; }
.hero .btn-outline-light {
    margin-left: 12px;
    padding: 14px 36px;
    font-size: 1.15rem;
    border-radius: var(--radius);
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
}

/* Sections */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-light); }
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}
.section-title p { color: var(--text-muted); font-size: 1rem; }
.section-title .accent-line {
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Service cards */
.service-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform .2s, box-shadow .2s;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.service-card .icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(26,58,108,.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}
.service-card h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: .9rem; }

/* Product cards */
.product-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.product-card .card-img {
    height: 160px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    position: relative;
}
.product-card .card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 600;
}
.product-card .card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .card-desc {
    color: var(--text-muted);
    font-size: .85rem;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.product-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.product-card .price {
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 700;
}
.product-card .price small {
    font-size: .8rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 6px;
}
.product-card .sales {
    font-size: .8rem;
    color: var(--text-muted);
}
.btn-buy {
    background: var(--accent);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 600;
    border: none;
    transition: background .2s;
}
.btn-buy:hover { background: var(--accent-light); color: #fff; }
.btn-free {
    background: #27ae60;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 600;
    border: none;
}
.btn-free:hover { background: #219a52; color: #fff; }

/* Industry grid */
.industry-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all .2s;
    display: block;
    color: var(--text-dark);
    height: 100%;
}
.industry-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    color: var(--text-dark);
}
.industry-card .ind-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
}
.industry-card h5 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.industry-card p { font-size: .8rem; color: var(--text-muted); }

/* Why choose us */
.why-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.why-item .why-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}
.why-item h5 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.why-item p { color: var(--text-muted); font-size: .9rem; }

/* Footer */
.footer {
    background: #1a2332;
    color: rgba(255,255,255,.7);
    padding: 40px 0 20px;
    font-size: .9rem;
}
.footer h5 { color: #fff; font-size: 1rem; margin-bottom: 16px; font-weight: 600; }
.footer a { color: rgba(255,255,255,.6); }
.footer a:hover { color: #fff; }
.footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    font-size: .8rem;
}

/* Category filter */
.cat-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 30px;
}
.cat-filter a {
    padding: 6px 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-dark);
    font-size: .9rem;
    transition: all .2s;
}
.cat-filter a:hover,
.cat-filter a.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Product detail */
.detail-header {
    background: var(--bg-light);
    padding: 30px 0;
}
.detail-price {
    color: var(--accent);
    font-size: 2rem;
    font-weight: 700;
}
.detail-meta { color: var(--text-muted); font-size: .9rem; }
.tryout-blur {
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
    position: relative;
}
.tryout-blur::after {
    content: '购买后查看完整内容';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(26,58,108,.9);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: .9rem;
    filter: none;
    pointer-events: none;
}

/* Payment */
.pay-box {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    text-align: center;
}
.pay-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
}
.pay-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .2s;
}
.pay-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.qr-box {
    width: 220px;
    height: 220px;
    margin: 0 auto 20px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.qr-box img, .qr-box svg { width: 100%; height: 100%; }
.pay-amount { font-size: 1.8rem; font-weight: 700; color: var(--accent); margin: 16px 0; }

/* Breadcrumb */
.breadcrumb-bar {
    background: var(--bg-light);
    padding: 12px 0;
    font-size: .85rem;
}
.breadcrumb-bar a { color: var(--text-muted); }
.breadcrumb-bar .sep { margin: 0 8px; color: #ccc; }

/* Free lead form */
.free-form {
    background: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius);
}

/* About page */
.about-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 60px 0;
}
.contact-info li {
    list-style: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}
.contact-info li:last-child { border-bottom: none; }
.contact-info .ci-icon {
    width: 36px;
    height: 36px;
    background: rgba(26,58,108,.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero { padding: 50px 0 40px; }
    .hero h1 { font-size: 1.7rem; }
    .hero p { font-size: 1rem; }
    .section { padding: 40px 0; }
    .section-title h2 { font-size: 1.4rem; }
    .navbar-qm .nav-cta { margin-left: 0; margin-top: 8px; }
    .product-card .card-img { height: 130px; }
    .pay-box { padding: 20px; }
}

/* Toast */
.toast-msg {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--radius);
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    display: none;
}

/* News cards */
.news-card {
    transition: transform .2s, box-shadow .2s;
}
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.12) !important;
}
.article-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #2c3e50;
}
.article-content p { margin-bottom: 1.1rem; }
.article-content h2, .article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.article-content img { max-width: 100%; border-radius: 8px; margin: 1rem 0; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1.1rem; }
.article-content blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    color: #6c757d;
    margin: 1.5rem 0;
}
