/**
 * 康小皓科技 - 主页样式文件
 * 主色调：科技蓝 (#165DFF) + 健康浅绿 (#4CAF50) + 纯白
 * 风格：简洁商务、圆角设计、无复杂动画
 */

/* ===== 基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #165DFF;
    --primary-green: #4CAF50;
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(22, 93, 255, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== 导航栏 ===== */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-blue);
}

.brand-subtitle {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 2px;
}

/* 导航菜单 */
.navbar-menu {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

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

/* 导航按钮 */
.nav-btn {
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.nav-btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0D47A1 100%);
    color: var(--white);
}

.nav-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}

/* 汉堡菜单（移动端） */
.hamburger-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: all 0.3s;
    border-radius: 2px;
}

/* ===== Hero 区域 ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0D47A1 100%);
    color: var(--white);
    padding: 60px 20px 40px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 16px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 16px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    min-height: 52px;
    background: var(--white);
    color: var(--primary-blue);
    border-radius: 28px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* 金字塔模型图 */
.pyramid-model-img {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInRight 1s ease;
}



/* ===== 服务区域 ===== */
.services-section {
    padding: 64px 20px;
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 48px;
}

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

.service-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(22, 93, 255, 0.15);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.service-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* ===== 模型展示区域 ===== */
.model-section {
    padding: 64px 20px;
    background: var(--white);
}

.model-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 32px;
    align-items: center;
}

.model-description {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.model-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

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

/* 金字塔图片样式 */
.pyramid-detail-img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 金字塔详情（旧版，已废弃） */
.pyramid-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pyramid-item {
    padding: 16px 24px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-weight: 600;
    transition: all 0.3s;
}

.pyramid-item:hover {
    transform: translateX(8px);
}

.pyramid-item .level-number {
    font-size: 20px;
    font-weight: bold;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pyramid-item.level-5 {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.pyramid-item.level-4 {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.pyramid-item.level-3 {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.pyramid-item.level-2 {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.pyramid-item.level-1 {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

/* ===== 信任背书区域 ===== */
.trust-section {
    padding: 64px 20px 32px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

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

.trust-item {
    text-align: center;
    padding: 24px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.trust-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.trust-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.trust-item h4 {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.trust-item p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* ===== 关于我们区域 ===== */
.about-section {
    padding: 64px 20px 32px;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    margin-top: 32px;
}

.about-text p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.about-info {
    background: var(--light-gray);
    padding: 24px;
    border-radius: var(--border-radius);
}

.info-item {
    margin-bottom: 24px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.info-value {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
}

/* ===== 页脚 ===== */
.footer {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: var(--white);
    padding: 64px 20px 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--primary-blue);
}

.footer-section p {
    font-size: 13px;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section a {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    opacity: 0.8;
}

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

/* ===== 悬浮咨询按钮 ===== */
.floating-consult-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0D47A1 100%);
    color: var(--white);
    border: none;
    border-radius: 28px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(22, 93, 255, 0.4);
    transition: all 0.3s;
    z-index: 999;
}

.floating-consult-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(22, 93, 255, 0.5);
}

.floating-consult-btn span:first-child {
    font-size: 20px;
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .hamburger-btn {
        display: flex;
    }
    
    .hamburger-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .navbar-brand {
        gap: 8px;
    }
    
    .brand-logo-img {
        height: 32px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-cta-btn {
        padding: 14px 28px;
        min-height: 48px;
        font-size: 16px;
    }
    
    .pyramid-model-img {
        max-width: 90%;
    }
    
    .model-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .pyramid-detail-img {
        max-width: 90%;
        margin: 0 auto;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .about-text p {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .about-info {
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .footer-bottom {
        font-size: 11px;
    }
    
    .floating-consult-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .service-card {
        padding: 24px 20px;
    }
}
