/**
 * 解决方案详情页样式 v2.0
 * 高级感设计 - 与产品页风格统一
 * 品牌主色: #2C5F8D
 */

/* ==================== CSS Variables ==================== */
:root {
    --primary: #2C5F8D;
    --primary-light: #3A7CA5;
    --primary-dark: #1E4A6E;
    --primary-lightest: #E8F4FC;
    --accent: #00A6FB;
    --accent-light: #e6f7ff;
    --text-primary: #1a202c;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success: #22c55e;
    --success-light: #dcfce7;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --navbar-height: 72px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

/* ==================== Reset & Base ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-white);
    padding-top: var(--navbar-height);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== Hero Section - 双栏布局 ==================== */
.solution-detail-hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-lightest) 0%, var(--bg-white) 100%);
    position: relative;
    overflow: hidden;
}

.solution-detail-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(44, 95, 141, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

.breadcrumb span {
    color: var(--text-primary);
    font-weight: 500;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.hero-badge i {
    color: var(--primary);
}

/* Hero Title */
.solution-detail-hero h1,
.hero-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--primary);
}

/* Hero Subtitle */
.solution-detail-hero .hero-subtitle,
.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

/* Hero Stats - 卡片化 */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.hero-stat {
    text-align: center;
    padding: 20px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.hero-stat:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.hero-stat .number,
.hero-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    display: block;
    line-height: 1.2;
}

.hero-stat .label,
.hero-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 16px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-illustration {
    width: 100%;
    max-width: 480px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(44, 95, 141, 0.15));
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(44, 95, 141, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(44, 95, 141, 0.4);
}

.btn-outline,
.btn-secondary {
    background: var(--bg-white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

/* ==================== Section Common ==================== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--primary-lightest);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-header h2,
.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-header p,
.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== Pain Points Section ==================== */
.pain-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.pain-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.pain-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--danger);
    transition: all 0.3s ease;
}

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

.pain-card h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

.pain-card h3 i {
    color: var(--danger);
    font-size: 20px;
}

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

/* ==================== Solution Steps Section ==================== */
.solution-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.solution-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.solution-step {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.solution-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 28px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(44, 95, 141, 0.3);
}

.solution-step h3 {
    margin-top: 8px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.solution-step p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 8px;
    font-size: 15px;
}

/* ==================== Features Grid ==================== */
.features-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

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

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

.feature-card .icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.feature-card .icon-wrap i {
    font-size: 24px;
    color: white;
}

.feature-card h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

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

.feature-card .feature-list {
    list-style: none;
    margin-top: 16px;
}

.feature-card .feature-list li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-card .feature-list li:last-child {
    border-bottom: none;
}

.feature-card .feature-list li i {
    color: var(--success);
    font-size: 12px;
}

/* ==================== Advantage Section ==================== */
.advantage-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.advantage-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.advantage-section .section-header h2 {
    color: white;
}

.advantage-section .section-header p {
    color: rgba(255,255,255,0.8);
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.advantage-card {
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

.advantage-card i {
    font-size: 48px;
    color: var(--accent);
    margin-bottom: 20px;
}

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

.advantage-card p {
    opacity: 0.85;
    line-height: 1.7;
    font-size: 15px;
}

/* ==================== Related Cases Section ==================== */
.related-cases-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.case-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

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

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

.case-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-card .card-icon i {
    font-size: 20px;
    color: white;
}

.case-card .card-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.case-card h3 {
    font-size: 17px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.case-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.case-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
}

.case-card .card-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.case-card:hover .card-link i {
    transform: translateX(4px);
}

/* ==================== Dynamic Content Section ==================== */
.dynamic-content-section {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.content-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.content-card-image {
    height: 160px;
    background: linear-gradient(135deg, var(--primary-lightest) 0%, #bae6fd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-card-image i {
    font-size: 48px;
    color: var(--primary);
    opacity: 0.5;
}

.content-card-body {
    padding: 24px;
}

.content-card h3 {
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: 600;
}

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

.content-card .tags {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.content-card .tag {
    background: var(--primary-lightest);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* ==================== CTA Section ==================== */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: var(--bg-white);
}

.cta-section h2 {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 700;
}

.cta-section > p,
.cta-section .container > p {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.cta-buttons-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.cta-buttons-col .cta-buttons {
    margin-top: 0;
}
.cta-phone {
    font-size: 14px;
    color: var(--text-light);
}
.cta-phone a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.cta-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.cta-qrcode img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.cta-qrcode span {
    font-size: 13px;
    color: var(--text-light);
}

/* ==================== Footer (footer.js component) ==================== */
.footer {
    background: #0a1628;
    color: rgba(255,255,255,0.6);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand-name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.footer-slogan {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
}

.footer-column-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-link {
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-link:hover {
    color: #fff;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 14px;
}

.footer-contact-item i {
    color: #4a90c8;
    width: 16px;
}

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

.footer-bottom p {
    margin: 0 0 8px;
}

.footer-bottom a {
    color: #64748b;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #94a3b8;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        order: -1;
    }

    .hero-illustration {
        max-width: 400px;
    }

    .solution-detail-hero h1,
    .hero-title {
        font-size: 36px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .solution-detail-hero {
        padding: 60px 0;
    }

    .solution-detail-hero h1,
    .hero-title {
        font-size: 28px;
    }

    .solution-detail-hero .hero-subtitle,
    .hero-desc {
        font-size: 16px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hero-stat {
        padding: 16px 12px;
    }

    .hero-stat .number,
    .hero-stat-value {
        font-size: 24px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 60px 0;
    }

    .section-header h2,
    .section-title {
        font-size: 28px;
    }

    .section-header p,
    .section-desc {
        font-size: 16px;
    }

    .pain-section,
    .solution-section,
    .advantage-section,
    .features-section,
    .dynamic-content-section,
    .related-cases-section,
    .cta-section {
        padding: 60px 0;
    }

    .cta-section h2 {
        font-size: 24px;
    }

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

    .cta-row {
        flex-direction: column;
        gap: 24px;
    }

    .cta-qrcode img {
        width: 80px;
        height: 80px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .solution-detail-hero h1,
    .hero-title {
        font-size: 24px;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .pain-cards,
    .solution-steps,
    .advantage-grid,
    .features-grid,
    .related-content,
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact-item {
        justify-content: center;
    }
}
