/* 引入现代字体和科技感字体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=Playfair+Display:wght@400;500;600;700&family=Orbitron:wght@400;500;700;900&family=Exo+2:wght@300;400;500;700&display=swap');

/* CSS变量定义 */
:root {
    --color-cyan: #00ffff;
    --color-cyan-80: rgba(0, 255, 255, 0.8);
    --color-cyan-60: rgba(0, 255, 255, 0.6);
    --color-cyan-40: rgba(0, 255, 255, 0.4);
    --color-cyan-20: rgba(0, 255, 255, 0.2);
    --color-cyan-10: rgba(0, 255, 255, 0.1);
    --color-cyan-90: rgba(0, 255, 255, 0.9);
    --color-cyan-50: rgba(0, 255, 255, 0.5);
    --color-cyan-100: rgba(0, 255, 255, 1);
}

/* 智慧医美页面专用样式 */
.ai-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 30%,
        rgba(0, 0, 0, 0.4) 70%,
        rgba(0, 0, 0, 0.2) 100%),
        linear-gradient(45deg,
        rgba(255, 215, 0, 0.05) 0%,
        transparent 50%,
        rgba(255, 215, 0, 0.03) 100%),
        url('../images/banner1.1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.hero-description {
    font-size: 1.2em;
    margin: 20px 0 40px;
    opacity: 0.9;
}

/* 核心优势展示 */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.feature-card {
    background: rgba(255,255,255,0.1);
    padding: 30px 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    max-width: 200px;
    text-align: center;
    flex: 1 1 auto;
}

/* 移动端适配 (<=768px) */
@media (max-width: 768px) {
    .hero-features {
        gap: 0.625rem; /* 10px */
        margin: 1.25rem 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        padding: 0 0.625rem;
        box-sizing: border-box;
    }
    .feature-card {
        /* 调整宽度策略：小屏下更宽松 */
        width: calc(33.33% - 0.625rem); /* 默认三列 */
        min-width: 6rem; /* 96px */
        flex: 0 0 auto;
        padding: 0.75rem 0.25rem; /* 减少左右内边距 */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        aspect-ratio: auto;
        min-height: 6.25rem;
    }

    /* 在非常小的屏幕上 (<=375px) 切换为两列布局，防止文字拥挤 */
    @media (max-width: 375px) {
        .feature-card {
            width: calc(50% - 0.625rem);
            max-width: none; /* 移除最大宽度限制 */
        }
        /* 重置nth-child规则，让所有卡片在两列布局下表现一致 */
        .feature-card:nth-last-child(-n+2) {
            width: calc(50% - 0.625rem);
            max-width: none;
        }
    }

    /* 第4、5个模块在三列布局下居中 */
    .feature-card:nth-last-child(-n+2) {
        width: calc(50% - 0.625rem);
        max-width: 10rem;
    }

    .feature-icon {
        width: 2rem; /* 稍微缩小图标 */
        height: 2rem;
        margin: 0 0 0.5rem 0;
    }
    .feature-icon i {
        font-size: 1rem;
    }
    .feature-card h3 {
        font-size: 0.8125rem; /* 13px */
        margin: 0 0 0.25rem 0;
        line-height: 1.3;
        white-space: normal;
        word-break: break-word; /* 允许在单词内换行 */
        overflow: visible;
        width: 100%;
        padding: 0 2px; /* 防止文字紧贴边缘 */
    }
    .feature-card p {
        display: block;
        font-size: 0.75rem;
        line-height: 1.2;
        opacity: 0.8;
        margin: 0;
        white-space: normal;
        word-break: break-word;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 1.25rem;
        box-sizing: border-box;
        gap: 0.9375rem;
    }
    .hero-actions .btn {
        width: 100%;
        min-height: 3rem;
        font-size: 1rem;
        justify-content: center;
    }
}

.feature-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

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

.feature-card h3 {
    font-size: 1.1em;
    margin: 15px 0 10px;
    color: white;
}

.feature-card p {
    font-size: 0.9em;
    opacity: 0.9;
    margin: 0;
}

/* 行动按钮 */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 180px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 4px 15px rgba(255,107,107,0.4);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,107,107,0.6);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.ai-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center,
        rgba(255, 215, 0, 0.08) 0%,
        rgba(255, 215, 0, 0.03) 40%,
        transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.ai-hero:hover::before {
    opacity: 1;
}

.ai-hero:hover {
    transform: scale(1.01);
    background-size: 105% 105%;
}

.ai-hero .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 0 2rem;
}

.ai-hero h1 {
    font-family: 'Orbitron', 'Exo 2', 'Noto Sans SC', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-shadow:
        0 0 10px var(--color-cyan-80),
        0 0 20px var(--color-cyan-60),
        0 0 30px var(--color-cyan-40),
        0 0 40px var(--color-cyan-20),
        0 4px 20px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    background: linear-gradient(135deg,
        var(--color-cyan) 0%,
        #ffffff 25%,
        var(--color-cyan) 50%,
        #ffffff 75%,
        var(--color-cyan) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1.2s ease-out 0.3s forwards,
               float 3s ease-in-out infinite 2s,
               neonGlow 2s ease-in-out infinite alternate,
               gradientShift 4s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.ai-hero h1:hover {
    transform: translateY(-5px) scale(1.05);
    text-shadow:
        0 0 15px var(--color-cyan-100),
        0 0 25px var(--color-cyan-80),
        0 0 35px var(--color-cyan-60),
        0 0 45px var(--color-cyan-40),
        0 6px 25px rgba(0, 0, 0, 0.8);
}

.ai-hero h1.clicked {
    animation: clickPulse 0.6s ease-out;
}

.ai-hero h1::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg,
        transparent 0%,
        var(--color-cyan-10) 25%,
        transparent 50%,
        var(--color-cyan-10) 75%,
        transparent 100%);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.ai-hero h1:hover::before {
    opacity: 1;
}

/* 粒子效果容器 */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-cyan-80);
    border-radius: 50%;
    animation: particleFloat 3s linear infinite;
    box-shadow: 0 0 6px var(--color-cyan-60);
}

.particle::before {
    content: attr(data-char);
    position: absolute;
    top: -2px;
    left: -2px;
    font-size: 8px;
    color: var(--color-cyan-90);
    font-family: 'Orbitron', monospace;
    font-weight: 500;
}

/* 隐藏文字样式 */
.hidden-text {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    pointer-events: none;
}

.hidden-text.show {
    opacity: 1;
    top: 110%;
}

.tech-subtitle {
    display: block;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    color: var(--color-cyan-90);
    text-shadow: 0 0 10px var(--color-cyan-50);
    margin-bottom: 0.5rem;
    letter-spacing: 0.2em;
    animation: slideInFromLeft 0.8s ease-out 0.2s both;
}

.tech-description {
    display: block;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    font-family: 'Exo 2', 'Noto Sans SC', sans-serif;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    letter-spacing: 0.1em;
    animation: slideInFromRight 0.8s ease-out 0.4s both;
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.ai-hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 215, 0, 0.8) 20%,
        #FFD700 50%,
        rgba(255, 215, 0, 0.8) 80%,
        transparent 100%);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: expandLine 1.5s ease-out 1.5s forwards;
}

.divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 215, 0, 0.6) 25%,
        #FFD700 50%,
        rgba(255, 215, 0, 0.6) 75%,
        transparent 100%);
    margin: 2rem auto;
    opacity: 0;
    transform: scaleX(0);
    animation: expandDivider 1s ease-out 0.8s forwards;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.ai-hero p {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4),
                 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s ease-out 1s forwards;
    color: rgba(255, 255, 255, 0.95);
}

/* 动画定义 */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes neonGlow {
    0% {
        text-shadow:
            0 0 10px var(--color-cyan-80),
            0 0 20px var(--color-cyan-60),
            0 0 30px var(--color-cyan-40),
            0 0 40px var(--color-cyan-20),
            0 4px 20px rgba(0, 0, 0, 0.6);
    }
    100% {
        text-shadow:
            0 0 15px var(--color-cyan-100),
            0 0 25px var(--color-cyan-80),
            0 0 35px var(--color-cyan-60),
            0 0 45px var(--color-cyan-40),
            0 4px 20px rgba(0, 0, 0, 0.6);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes clickPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        text-shadow:
            0 0 20px var(--color-cyan-100),
            0 0 30px var(--color-cyan-80),
            0 0 40px var(--color-cyan-60),
            0 0 50px var(--color-cyan-40);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes expandLine {
    to {
        width: 120px;
    }
}

@keyframes expandDivider {
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* 波纹动画（迁移自JS） */
@keyframes rippleEffect {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* 交互平滑过渡 */
.ai-hero .container > * {
    transition: transform 0.3s ease-out;
}

/* 响应式设计 - 移动优先方法 */
/* 小屏幕设备样式 (480px及以下) */
@media (max-width: 480px) {
    .ai-hero {
        height: 70vh;
        min-height: 400px;
        background-attachment: scroll;
        padding: 40px 0;
    }

    .ai-hero .container {
        padding: 0 1rem;
    }

    .ai-hero h1 {
        margin-bottom: 1rem;
        font-size: clamp(1.5rem, 8vw, 2.5rem);
        letter-spacing: 0.03em;
    }

    .divider {
        width: 40px;
        margin: 1rem auto;
    }

    .tech-subtitle {
        font-size: clamp(0.8rem, 4vw, 1rem);
        margin-bottom: 0.3rem;
    }

    .tech-description {
        font-size: clamp(0.6rem, 3vw, 0.8rem);
    }

    .particle {
        width: 2px;
        height: 2px;
    }

    .particle::before {
        font-size: 5px;
    }

    .hero-features {
        gap: 15px;
        margin: 30px 0;
    }

    .feature-card {
        padding: 20px 15px;
        max-width: 150px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

    .feature-icon i {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        min-width: 180px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* 平板设备样式 (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .ai-hero {
        height: 80vh;
        min-height: 500px;
        background-attachment: scroll;
        padding: 60px 0;
    }

    .ai-hero .container {
        padding: 0 1.5rem;
    }

    .ai-hero h1 {
        margin-bottom: 1.5rem;
        font-size: clamp(1.8rem, 10vw, 3rem);
        letter-spacing: 0.04em;
    }

    .divider {
        width: 60px;
        margin: 1.5rem auto;
    }

    .tech-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
    }

    .tech-description {
        font-size: clamp(0.7rem, 2.5vw, 0.9rem);
    }

    .particle {
        width: 3px;
        height: 3px;
    }

    .particle::before {
        font-size: 6px;
    }

    .hero-features {
        gap: 20px;
        margin: 30px 0;
    }

    .feature-card {
        max-width: 150px;
        padding: 20px 15px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .feature-icon i {
        font-size: 20px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        min-width: 200px;
    }
}

/* 内容区域样式 */
.ai-content-section {
    padding: var(--section-padding);
    background-color: var(--color-white);
}

/* 智能体卡片样式 */
.agent-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.agent-card {
    background: var(--color-white);
    border: 1px solid var(--color-neutral-200);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-duration) var(--transition-timing),
                box-shadow var(--transition-duration) var(--transition-timing);
}

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

.agent-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.agent-card ul {
    list-style: none;
    padding: 0;
}

.agent-card li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-neutral-700);
}

.agent-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-weight: bold;
}

/* 价值主张样式 - 已迁移到common-styles.css */

/* 桌面端响应式设计 - agent-cards特定样式 */
@media (max-width: 768px) {
    .agent-cards {
        grid-template-columns: 1fr;
    }
}

/* 二维码模态弹窗样式 */
.qrcode-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.qrcode-modal-content {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 10% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

.qrcode-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #666;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.qrcode-close:hover {
    color: #ff6b6b;
}

.qrcode-modal-content h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.qrcode-container {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.qrcode-image {
    width: 200px;
    height: 200px;
    border-radius: 10px;
}

.qrcode-modal-content p {
    margin: 20px 0 0 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 品牌主张文案增强（仅作用于该段落） */
.brand-statement {
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--color-gold, #FFD700);
    background: linear-gradient(90deg, rgba(255,215,0,0.08) 0%, rgba(255,255,255,0) 60%);
    border-radius: 8px;
}

.brand-statement p {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    line-height: 1.85;
    color: var(--color-neutral-800, #333);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.brand-statement p:first-child {
    font-weight: 600;
    letter-spacing: 0.02em;
}

@media (max-width: 480px) {
    .brand-statement p {
        font-size: clamp(1rem, 4.5vw, 1.2rem);
        line-height: 1.8;
    }
}

/* 小型模块化卡片样式（仅用于“我们的服务/我们的团队”） */
.services-grid.mini-cards {
    gap: 1rem;
}
.mini-cards .service-item {
    background: var(--color-white, #ffffff);
    border: 1px solid var(--color-neutral-200, #e5e7eb);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mini-cards .service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.mini-cards .service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,255,255,0.85));
    margin-bottom: 12px;
}
.mini-cards .service-icon i {
    color: var(--color-gold, #FFD700);
    font-size: 22px;
}
.mini-cards h3 {
    font-size: 1.1rem;
    margin: 6px 0 6px;
}
.mini-cards p {
    color: var(--color-neutral-700, #4b5563);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 时间线风格（参考 AIshiyebu 实现，作用于合并模块） */
.feature-timeline {
    position: relative;
    margin-top: 0.5rem;
    padding-left: 2.75rem;
}
.feature-timeline::before {
    content: "";
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-neutral-200, #e5e7eb);
}
.feature-timeline .timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.feature-timeline .timeline-marker {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,255,255,0.85));
    border: 1px solid var(--color-neutral-200, #e5e7eb);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.feature-timeline .timeline-marker i {
    color: var(--color-gold, #FFD700);
    font-size: 18px;
}
.feature-timeline .timeline-content h4 {
    font-size: 1.05rem;
    margin: 0 0 4px;
}
.feature-timeline .timeline-content p {
    margin: 0;
    color: var(--color-neutral-700, #4b5563);
    line-height: 1.65;
}
@media (max-width: 480px) {
    .feature-timeline {
        padding-left: 2.25rem;
    }
    .feature-timeline::before {
        left: 1.25rem;
    }
    .feature-timeline .timeline-marker {
        width: 34px;
        height: 34px;
    }
}

/* 品牌主张英雄区（背景图50%透明 + 高级感排版） */
.brand-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
    margin-top: 0.75rem;
    margin-bottom: clamp(1rem, 3vw, 1.75rem);
    min-height: clamp(280px, 36vw, 420px);
}
.brand-hero .hero-bg {
    position: absolute;
    inset: 0;
}
.brand-hero .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5; /* 50%透明度背景图 */
    transform: scale(1.03);
    filter: saturate(105%) contrast(102%);
}
.brand-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent; /* 由 brand-content 负责完整覆盖 */
}
.brand-hero .brand-content {
    position: absolute;
    inset: 0; /* 铺满整个背景图片区域 */
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
    background: rgba(120,120,120,0.18); /* 浅灰色覆盖层 */
}

.brand-hero .brand-content-inner {
    width: clamp(360px, 61.8vw, 960px); /* 黄金比例的宽度基准（约 61.8% vw） */
    aspect-ratio: 1.618 / 1; /* 宽高黄金比例，保证形态协调 */
    box-sizing: border-box;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-left: 5px solid rgba(120,120,120,0.35); /* 半透明灰强调条 */
    padding: clamp(1rem, 3vw, 1.75rem) clamp(1rem, 4vw, 2rem);
    border-radius: 12px;
}

/* 低高度紧凑变体：用于局部模块降低整体高度 */
.brand-hero .brand-content-inner.compact {
    aspect-ratio: auto; /* 取消固定比例，按内容收缩高度 */
    padding: clamp(0.75rem, 2vw, 1.2rem) clamp(0.9rem, 3vw, 1.6rem);
    text-align: center; /* 文本整体居中 */
}

.brand-hero .brand-content-inner.compact > * + * {
    margin-top: clamp(0.3rem, 0.8vw, 0.7rem); /* 段间距更紧凑 */
}

.brand-hero .brand-content-inner.compact .brand-title { line-height: 1.25; }
.brand-hero .brand-content-inner.compact .brand-subtitle { line-height: 4.6; } /* 提升副标题行距，视觉更舒展 */
.brand-hero .brand-content-inner.compact .brand-line { line-height: 1.75; } /* 段落行距更适配 18px+ 字号 */

/* 居中分隔线，避免左对齐造成视觉不均衡 */
.brand-hero .brand-content-inner.compact .brand-divider {
    margin-left: auto;
    margin-right: auto;
    width: clamp(64px, 10vw, 96px);
    height: 3px;
}

@media (max-width: 520px) {
    .brand-hero .brand-content-inner {
        width: 94vw; /* 小屏更贴边但留安全距 */
        aspect-ratio: 1.618 / 1; /* 保持黄金比例，内容超出时自然扩展 */
    }
}

/* 提升品牌段落的可读性与视觉层级（18px+ 且更大行距） */
.brand-hero .brand-title {
    font-size: clamp(22px, 2.6vw, 34px);
    line-height: 1.3;
    letter-spacing: 0.02em;
    font-weight: 700;
}

.brand-hero .brand-subtitle {
    font-size: clamp(18px, 2.2vw, 26px);
    line-height: 1.5;
    letter-spacing: 0.01em;
    font-weight: 600;
}

.brand-hero .brand-line {
    font-size: clamp(18px, 1.8vw, 22px); /* 至少 18px 提升冲击力 */
    line-height: 1.8; /* 增加行间距，缓解拥挤 */
    color: rgba(0,0,0,0.78);
}

.brand-hero .brand-content-inner > * + * {
    margin-top: clamp(0.4rem, 1.1vw, 0.9rem); /* 段间距统一更舒适 */
}
.brand-hero .brand-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0 0 0.25rem;
    color: var(--color-neutral-900, #111827);
}
.brand-hero .brand-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 700;
    color: var(--color-neutral-800, #1f2937);
}
.brand-hero .brand-divider {
    width: 72px;
    height: 3px;
    background: rgba(120,120,120,0.35); /* 将金色替换为半透明灰 */
    border-radius: 3px;
    margin: 0.75rem 0 1rem;
}

/* 舒适栅格：仅作用于该内容块下的服务栅格 */
.services-grid.comfort-grid {
    gap: clamp(1rem, 2.5vw, 1.5rem);
    margin-top: clamp(1rem, 3vw, 1.75rem);
}
.services-grid.comfort-grid .service-item {
    min-height: 120px;
    padding: clamp(1rem, 2.5vw, 1.25rem);
}
.brand-hero .brand-line {
    font-size: clamp(1rem, 2.6vw, 1.15rem);
    line-height: 1.85;
    color: var(--color-neutral-700, #374151);
    margin: 0.25rem 0;
}
@media (max-width: 520px) {
    .brand-hero .brand-content {
        border-left-width: 4px;
        padding: 1rem 1rem;
        background: rgba(255,255,255,0.6);
    }
}
/* Merged Styles from Body */

/* 明星项目 1:1 响应式网格重构 */
.star-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px auto;
    width: 100%;
}

.star-project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.star-project-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1 / 1; /* 强制 1:1 比例 */
    background: #f8f9fa;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.4s ease;
    width: 100%;
    height: 100%;
}

/* 第五项（第二排右侧模块）改为长方形，横跨两列 */
.star-project-card-link:nth-child(5) {
    grid-column: span 2;
}
.star-project-card-link:nth-child(5) .star-project-card {
    aspect-ratio: auto;
}
/* 确保第五项不撑开行高，完全由第四项决定 */
.star-project-card-link:nth-child(5) .star-project-card__image {
    position: absolute;
    inset: 0;
}

.star-project-card__image {
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.star-project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
}

.star-project-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    pointer-events: none;
}

.star-project-card__title {
    margin: 0;
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: transform 0.4s ease;
}

/* 交互动效 */
.star-project-card-link:hover {
    transform: translateY(-8px);
}

.star-project-card-link:hover .star-project-card {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.star-project-card-link:hover .star-project-card__image img {
    transform: scale(1.1);
}

.star-project-card-link:hover .star-project-card__title {
    transform: translateY(-5px);
}

/* 响应式断点验证 */
/* 1920x1080 & 1366x768 (Desktop) */
@media (min-width: 1025px) {
    .star-projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet / Smaller Desktop */
@media (max-width: 1024px) and (min-width: 769px) {
    .star-projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* 375x667 (Mobile) & Small Screens */
@media (max-width: 768px) {
    .star-projects-grid {
        grid-template-columns: repeat(2, 1fr); /* 移动端采用两列，保证 1:1 依然美观 */
        gap: 12px;
    }

    .star-project-card__title {
        font-size: 14px;
    }

    .star-project-card__overlay {
        padding: 12px;
    }
    
    /* 移动端下，第五项独占一行，需恢复高度支撑 */
    .star-project-card-link:nth-child(5) .star-project-card {
        aspect-ratio: 2 / 1;
    }
    .star-project-card-link:nth-child(5) .star-project-card__image {
        position: relative;
        inset: auto;
    }
}

@media (max-width: 480px) {
    .star-projects-grid {
        grid-template-columns: repeat(2, 1fr); /* 极小屏依然保持两列以维持 1:1 视觉冲击 */
        gap: 10px;
    }
}

/* 新品推荐网格布局 - 左40% 右60% */
.arrival-grid {
    display: grid;
    grid-template-columns: 2fr 3fr; /* 左侧占40%，右侧占60% */
    grid-template-rows: repeat(2, 1fr); /* 右侧两行等高 */
    gap: 20px;
    margin-top: 30px;
}

/* 图片容器通用样式 */
.arrival-item {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
    display: flex;
}

/* 图片通用样式 */
.arrival-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* 悬停微动效 */
.arrival-item:hover img {
    transform: scale(1.05);
}

/* 左侧主图区域 (Item 1) */
.arrival-item:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3; /* 跨越两行，高度自动对齐右侧总和 */
    aspect-ratio: 9 / 16; /* 强制纵向比例，确保移动端回退时比例正确 */
    height: 100%; /* 桌面端高度由网格行高决定 */
}

/* 右侧副图区域 (Item 2 & 3) */
.arrival-item:nth-child(2),
.arrival-item:nth-child(3) {
    grid-column: 2 / 3;
    aspect-ratio: 16 / 9; /* 强制横向比例 */
}

/* 响应式适配：≤768px */
@media (max-width: 768px) {
    .arrival-grid {
        grid-template-columns: 1fr; /* 单列堆叠 */
        grid-template-rows: auto;
        gap: 15px;
    }

    /* 移动端统一为 16:9 横向大图 */
    .arrival-item:nth-child(1),
    .arrival-item:nth-child(2),
    .arrival-item:nth-child(3) {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 16 / 9;
        height: auto;
    }
}

/* 胶原种植基地模块局部样式定义 */

/* 模块标题区域 Flex 布局，实现居中对齐 */
.section-header-styled {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    gap: 20px;
}

/* 标题文字样式：2rem 字号，加粗，增强可读性 */
.section-header-styled h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #000;
    margin: 0;
    letter-spacing: 2px;
}

/* 装饰线条：灰黑色，150px 宽度，在 PC 端提供视觉引导 */
.header-line {
    height: 2px;
    width: 150px;
    background-color: #666;
    display: block;
}

/* Swiper 外部容器：限制最大宽度 1400px，确保在大屏显示器下不会过度铺开 */
.collagen-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px; /* 预留左右 60px 空间放置导航按钮 */
    box-sizing: border-box;
}

/* Swiper 核心展示区：溢出隐藏，并设置内边距 */
.collagen-swiper {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 50px;
    position: relative;
    overflow: hidden;
}

/* 幻灯片包裹器：开启 Flex 布局，对齐子项 */
.swiper-wrapper {
    display: flex;
    align-items: center;
}

/* 单个幻灯片样式：PC 端侧边默认宽度 480px，灰度显示，降低视觉权重 */
.collagen-slide {
    background: #fff;
    width: 480px;
    height: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
    transform: scale(0.85);
    filter: grayscale(100%); /* 侧边幻灯片去色处理 */
    border-radius: 12px;
    overflow: hidden;
}

/* 中间激活态幻灯片：宽度放大至 680px，全彩色，不缩放，高对比度阴影 */
.swiper-slide-active.collagen-slide {
    width: 680px;
    height: auto;
    opacity: 1;
    transform: scale(1);
    z-index: 10;
    filter: none; /* 激活态恢复色彩 */
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}

/* 卡片内部容器：垂直排布图片与文字内容 */
.slide-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* 图片展示区：强制 1:1 正方形比例，最大高度限制在 60vh 以适配短屏显示 */
.slide-top {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #333;
    position: relative;
    overflow: hidden;
    padding: 0;
    flex-shrink: 0;
    max-height: 60vh;
}

/* 图片样式：使用 object-fit: cover 填充容器，避免拉伸 */
.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

/* 悬停动效：图片轻微放大 */
.collagen-slide:hover .slide-image {
    transform: scale(1.08);
}

/* 幻灯片底部内容区：纯白背景，统一内边距 */
.slide-bottom {
    background-color: #ffffff;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
    min-height: auto;
}

/* 移除之前的遮罩层相关代码，增加纯文本区域样式 */
.slide-text-content {
    margin-bottom: 12px;
    text-align: left;
}

/* 文章标题：字号 14px，颜色 #333，行高 1.5，单行溢出省略 */
.article-title {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    font-weight: 600;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 文章摘要：单行溢出省略 */
.article-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 链接包裹层：重置样式，添加 hover 状态和手型光标 */
.slide-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* 鼠标悬停交互：背景色变更为 #fafafa，过渡 0.2s */
.slide-link:hover .slide-bottom {
    background-color: #fafafa;
    transition: background-color 0.2s ease;
}

/* 非激活态底部背景（可选保留） */
.collagen-slide:not(.swiper-slide-active) .slide-bottom {
    background-color: #f9f9f9;
}

/* 业务特性列表样式：去除默认列表符号 */
.feature-list-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 列表项样式：自定义金色圆点，设置合理的行高 */
.feature-list-container li {
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.5;
    color: #333;
    padding-left: 15px;
    position: relative;
}

/* 使用伪元素绘制自定义列表圆点，颜色与品牌金一致 */
.feature-list-container li::before {
    content: "•";
    color: var(--color-gold, #d4a017);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 自定义 Swiper 导航按钮：长椭圆白色背景，带轻微投影，适配文字内容 */
.collagen-prev, .collagen-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    min-width: 80px;
    height: 45px;
    padding: 0 15px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 25px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 左右定位 */
.collagen-prev { left: -10px; }
.collagen-next { right: -10px; }

/* 按钮悬停状态：反色处理，提升交互反馈 */
.collagen-prev:hover, .collagen-next:hover {
    background: #333;
    color: #fff;
    border-color: #333;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* 响应式适配：针对移动端（≤768px）进行样式重载 */
@media (max-width: 768px) {
    /* 移除外层内边距，幻灯片直接贴边 */
    .collagen-wrapper { padding: 0; }

    /* 缩短标题线条 */
    .header-line { width: 50px; }

    /* 减小标题字号 */
    .section-header-styled h2 { font-size: 1.5rem; }

    /* 移动端卡片宽度占 85%，改为 3:4 比例以适应纵向屏幕 */
    .collagen-slide {
        width: 85%;
        height: auto;
        aspect-ratio: 3/4;
    }

    /* 激活态宽度稍大，突出中心感 */
    .swiper-slide-active.collagen-slide {
        width: 90%;
        height: auto;
        aspect-ratio: 3/4;
    }

    /* 移动端缩小导航按钮并降低透明度，避免遮挡内容 */
    .collagen-prev, .collagen-next {
        min-width: 70px;
        height: 36px;
        font-size: 0.8rem;
        opacity: 0.85;
    }
    .collagen-prev { left: 5px; }
    .collagen-next { right: 5px; }

    /* 移动端内边距微调 */
    .slide-overlay-text { padding: 15px; }
    .slide-bottom { padding: 20px; }
    .feature-list-container li { font-size: 0.9rem; margin-bottom: 5px; }
}
/* End of home.css */
