/* ==========================================
   智云精准 - 企业网站样式
   设计风格参考：Mobvista, MarketingForce, 神策数据
   ========================================== */

/* ==========================================
   1. 基础样式与重置
   ========================================== */

:root {
    /* 主色调 - 橙色系统 */
    --primary-color: #FF6B35;
    --primary-dark: #E85A2A;
    --primary-light: #FF8A5C;
    
    /* 辅助色 - 深橙色 */
    --secondary-color: #FF8C42;
    --accent-color: #FFB366;
    --success-color: #00C896;
    --warning-color: #FFA801;
    --danger-color: #FF3B30;
    
    /* 中性色 */
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border-color: #E5E5E5;
    --bg-light: #FFF5F0;
    --bg-white: #FFFFFF;
    
    /* 渐变色 */
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    --gradient-hero: linear-gradient(135deg, rgba(255, 107, 53, 0.95) 0%, rgba(255, 140, 66, 0.95) 100%);
    
    /* 字体 */
    --font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* 间距 */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    
    /* 动画 */
    --transition: all 0.3s ease;
    --transition-slow: all 0.6s ease;
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ==========================================
   2. 容器与网格系统
   ========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(108, 92, 231, 0.1) 100%);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* ==========================================
   3. 导航栏
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-tagline {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* 兼容旧模板的汉堡按钮（nav-toggle 变体） */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    /* 移动端下拉菜单链接加大点按区域 */
    .nav-menu a {
        padding: 12px 4px;
        font-size: 16px;
    }
}

/* ==========================================
   4. 按钮
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* hero 范围内的 ghost 按钮：橙色背景下橙边橙字看不清，换成白边白字，形状字号不变 */
.hero .btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}
.hero .btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

.btn-white {
    background: white;
    color: var(--primary-color);
}

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

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.btn-lg {
    padding: 16px 40px;
    font-size: 16px;
}

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

/* ==========================================
   5. Hero区域
   ========================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.2) 0%, transparent 70%);
}

.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
}

#heroCanvas {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ==========================================
   6. 挑战区域
   ========================================== */

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

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

.challenge-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.challenge-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(255, 58, 48, 0.1) 0%, rgba(255, 168, 1, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.challenge-icon i {
    font-size: 32px;
    color: var(--danger-color);
}

.challenge-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.challenge-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.challenge-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.challenge-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.challenge-list i {
    color: var(--danger-color);
    font-size: 16px;
}

/* ==========================================
   7. 解决方案区域
   ========================================== */

.solutions {
    background: white;
}

.solutions-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 40px;
}

.solution-tabs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: var(--transition);
    cursor: pointer;
}

.tab-button i {
    font-size: 24px;
    color: var(--text-tertiary);
    transition: var(--transition);
}

.tab-button:hover {
    background: white;
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.tab-button.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
}

.tab-button.active i {
    color: white;
}

.solution-content {
    position: relative;
    min-height: 400px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-text h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-primary);
}

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

.content-visual {
    position: relative;
}

.mockup-placeholder {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    border: 2px dashed var(--border-color);
}

.mockup-placeholder i {
    color: var(--primary-color);
    opacity: 0.5;
    margin-bottom: 20px;
}

.mockup-placeholder p {
    color: var(--text-tertiary);
    font-size: 14px;
}

/* ==========================================
   8. 产品区域
   ========================================== */

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

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

.product-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.product-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.product-icon i {
    font-size: 32px;
    color: white;
}

.product-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================
   9. 案例区域
   ========================================== */

.cases {
    background: white;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.case-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.case-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.case-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-placeholder i {
    color: white;
    opacity: 0.8;
}

.case-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
}

.case-category {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
}

.case-content {
    padding: 30px;
}

.case-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.case-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.case-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.result-item {
    text-align: center;
}

.result-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.result-label {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ==========================================
   10. 特性区域
   ========================================== */

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

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

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: var(--transition);
}

.feature-icon i {
    font-size: 36px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==========================================
   11. CTA区域
   ========================================== */

.cta {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ==========================================
   12. 联系表单
   ========================================== */

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

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.info-icon i {
    font-size: 24px;
    color: white;
}

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

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

/* ==========================================
   13. 页脚
   ========================================== */

.footer {
    background: #1A1A1A;
    color: white;
    padding: 60px 0 0;
}

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

.footer-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-4px);
}

.footer-subtitle {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 8px;
}

.qrcode-placeholder {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qrcode-placeholder i {
    opacity: 0.5;
}

.qrcode-placeholder p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: white;
}

/* ==========================================
   14. 返回顶部按钮
   ========================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
}

/* ==========================================
   15. 响应式设计
   ========================================== */

@media (max-width: 1024px) {
    .section-title {
        font-size: 36px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .challenges-grid,
    .products-grid,
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .solutions-wrapper {
        grid-template-columns: 1fr;
    }
    
    .solution-tabs {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .challenges-grid,
    .products-grid,
    .cases-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-content.active {
        grid-template-columns: 1fr;
    }
    
    .content-visual {
        order: -1;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 32px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 28px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* ==========================================
   博客详情页样式
   ========================================== */

.nav-logo .logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.blog-post-page {
    padding-top: 100px;
    padding-bottom: 80px;
    background: #f8f9fa;
    min-height: 100vh;
}

.blog-post-article {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-post-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-post-category {
    display: inline-block;
    padding: 6px 18px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-post-header h1 {
    font-size: 38px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 24px;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    color: var(--text-secondary);
    font-size: 14px;
    flex-wrap: wrap;
}

.blog-post-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-post-meta-item i {
    color: var(--primary-color);
    font-size: 14px;
}

.blog-post-featured {
    margin-bottom: 40px;
}

.blog-post-featured-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.blog-post-content {
    background: white;
    padding: 50px 60px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    font-size: 17px;
    line-height: 1.85;
    color: var(--text-primary);
}

.blog-post-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
}

.blog-post-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 30px;
    margin-bottom: 14px;
}

.blog-post-content p {
    margin-bottom: 18px;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 18px;
    padding-left: 28px;
}

.blog-post-content li {
    margin-bottom: 8px;
}

.blog-post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px 24px;
    margin: 28px 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

.blog-post-content strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.blog-post-footer-inner {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-post-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .blog-post-page {
        padding-top: 80px;
    }

    .blog-post-header h1 {
        font-size: 28px;
    }

    .blog-post-content {
        padding: 30px 24px;
        font-size: 16px;
    }

    .blog-post-content h2 {
        font-size: 24px;
    }

    .blog-post-content h3 {
        font-size: 20px;
    }

    .blog-post-meta {
        gap: 16px;
    }

    .nav-logo .logo-img {
        height: 34px;
    }
}

/* ============================================================
   移动端强制塌缩（覆盖内联样式，解决横向溢出）
   说明：部分页面在 HTML 内联 style 中写死了 grid-template-columns /
   display:flex;flex-direction:row 等，优先级高于普通媒体查询，
   因此这里必须用 !important 才能覆盖。仅作用于 <=768px。
   ============================================================ */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* 1) 所有网格容器强制单列（覆盖内联 grid-template-columns） */
    .challenges-grid,
    .products-grid,
    .cases-grid,
    .features-grid,
    .overview-grid,
    .value-grid,
    .scenarios-grid,
    .solutions-grid,
    .solutions-wrapper,
    .hero-stats,
    .footer-content,
    .contact-wrapper,
    .form-row,
    .tab-content.active,
    .stats-grid,
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* 2) 内联 flex 行强制纵向堆叠（覆盖 flex-direction: row / row-reverse） */
    [style*="flex-direction: row"],
    [style*="flex-direction:row"] {
        flex-direction: column !important;
        gap: 1.25rem !important;
    }
    /* 内联 flex 容器允许换行，避免子项被压/撑 */
    [style*="display: flex"],
    [style*="display:flex"] {
        flex-wrap: wrap !important;
    }
    /* 释放内联固定 flex-basis（如 flex:0 0 80px） */
    [style*="flex:0 0"],
    [style*="flex: 0 0"] {
        flex: 1 1 auto !important;
        max-width: 100% !important;
    }

    /* 3) 卡片 / 固定宽块占满容器宽度 */
    .product-card,
    .challenge-card,
    .feature-item,
    .case-card,
    .overview-card,
    .stat-card,
    .value-card,
    .scenario-card,
    .solution-card,
    [class*="card"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 4) 长文本 / 长链接断行，防止撑宽 */
    p, li, a, td, th, h1, h2, h3, h4, h5, h6, span, div, code, pre {
        overflow-wrap: break-word;
        word-break: break-word;
    }
    pre, code {
        white-space: pre-wrap !important;
        max-width: 100%;
        overflow-x: auto;
    }

    /* 5) 媒体与表格自适应 */
    img, video, iframe, svg, canvas {
        max-width: 100% !important;
        height: auto !important;
    }
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 6) 表单与按钮不超出 */
    input, textarea, select, button {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 7) 容器不超出视口 */
    .container, .section, section, main, .wrapper, .content,
    [style*="max-width:1200px"], [style*="max-width: 1200px"] {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ============================================================
   按钮内装饰 SVG：跟随字体大小（避免被全局 svg max-width:100% 撑成巨型）
   ============================================================ */
.deco-svg {
    width: 1em !important;
    height: 1em !important;
    max-width: none !important;
    flex-shrink: 0;
    vertical-align: -0.125em;
}