/* 
 * 全球冷链物流与温控仓储平台 - 核心样式表
 * 独有视觉：冰晶黄+极地蓝
 */

:root {
    --primary-yellow: #F4D03F;
    --primary-blue: #00A8E8;
    --bg-light: #F0F8FF;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --white: #FFFFFF;
    --border-color: #E1E8ED;
    --shadow-sm: 0 4px 6px rgba(0, 168, 232, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 168, 232, 0.1);
    --shadow-hover: 0 15px 30px rgba(0, 168, 232, 0.15);
    --transition-fast: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* 布局辅助 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

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

.section-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-yellow));
    border-radius: 2px;
}

.section-desc {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 168, 232, 0.3);
}

.btn-primary:hover {
    background-color: #0089C2;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 232, 0.4);
}

.btn-yellow {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(244, 208, 63, 0.3);
}

.btn-yellow:hover {
    background-color: #E3C036;
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* 导航栏 */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-blue);
}

.logo svg {
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 10px 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: var(--transition-fast);
}

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

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

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

/* Hero 冰晶冷链区 */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background-color: var(--text-dark);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(44, 62, 80, 0.9) 0%, rgba(0, 168, 232, 0.4) 100%);
    z-index: 2;
}

/* 粒子雪花动效层 */
.particles-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 4;
    color: var(--white);
    max-width: 800px;
}

.hero-title {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

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

.hero-desc {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* 追溯单号查询框 */
.tracking-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.tracking-title {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tracking-input-group {
    display: flex;
    gap: 10px;
}

.tracking-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

.tracking-input:focus {
    box-shadow: 0 0 0 2px var(--primary-yellow);
}

/* 卡片结霜特效 */
.frost-card {
    background: var(--white);
    border-radius: 15px;
    padding: 40px 30px;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    z-index: 1;
}

.frost-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: var(--transition-slow);
    z-index: 2;
    pointer-events: none;
}

.frost-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-blue);
}

.frost-card:hover::after {
    opacity: 1;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.1"/></svg>');
}

/* 多温区仓储模块 */
.temp-zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.zone-card {
    text-align: center;
    padding: 30px 20px;
}

.zone-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-blue);
    position: relative;
}

.zone-temp {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.zone-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* 温度计动画组件 */
.thermometer-widget {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-top: 50px;
    display: flex;
    align-items: center;
    gap: 50px;
}

.thermo-visual {
    width: 60px;
    height: 300px;
    background: #E1E8ED;
    border-radius: 30px;
    position: relative;
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.thermo-bulb {
    width: 80px;
    height: 80px;
    background: var(--primary-blue);
    border-radius: 50%;
    position: absolute;
    bottom: -20px;
    left: -10px;
    z-index: 2;
    transition: background-color var(--transition-slow);
}

.thermo-liquid {
    width: 100%;
    height: 50%; /* JS 动态控制 */
    background: var(--primary-blue);
    border-radius: 25px;
    transition: height 1s ease-in-out, background-color var(--transition-slow);
    z-index: 1;
}

.thermo-controls {
    flex: 1;
}

.thermo-slider {
    width: 100%;
    margin: 20px 0;
    -webkit-appearance: none;
    height: 8px;
    background: #E1E8ED;
    border-radius: 4px;
    outline: none;
}

.thermo-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-yellow);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 核心业务板块 */
.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.biz-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--white);
    transition: var(--transition-fast);
}

.biz-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.biz-img {
    height: 240px;
    overflow: hidden;
}

.biz-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.biz-card:hover .biz-img img {
    transform: scale(1.05);
}

.biz-content {
    padding: 30px;
}

.biz-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.biz-desc {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* IoT 监控模块 */
.iot-section {
    background-color: var(--text-dark);
    color: var(--white);
}

.iot-section .section-title {
    color: var(--white);
}

.iot-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.iot-content {
    flex: 1;
}

.iot-feature {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.iot-icon {
    font-size: 32px;
    color: var(--primary-yellow);
}

.iot-text h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.iot-text p {
    color: #AAB7B8;
}

.iot-dashboard {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
    position: relative;
}

.iot-dashboard img {
    border-radius: 10px;
}

/* 资质墙 */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cert-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px;
    font-weight: bold;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: var(--transition-fast);
}

.cert-item:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: var(--bg-light);
}

.cert-icon {
    font-size: 40px;
    color: var(--primary-yellow);
}

/* Footer */
.footer {
    background-color: #1A252F;
    color: #BDC3C7;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 24px;
    color: var(--white);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-title {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #BDC3C7;
}

.footer-links a:hover {
    color: var(--primary-yellow);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

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

/* 内页通用 Header */
.page-header {
    height: 300px;
    background-color: var(--text-dark);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

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

.page-title {
    font-size: 40px;
    margin-bottom: 15px;
}

/* 面包屑 */
.breadcrumb {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb span {
    color: var(--text-dark);
}

/* 响应式 */
@media (max-width: 992px) {
    .business-grid, .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .iot-container {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-sm);
    }
    .nav-menu.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .header-actions {
        display: none;
    }
    .business-grid, .cert-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .thermometer-widget {
        flex-direction: column;
        text-align: center;
    }
}
