/* ========================================
   哇哇智能健身房系统 - 首页专属样式
   仅首页内容区使用的样式
   ======================================== */

/* ====== 左侧悬浮核心功能导航 ====== */
.side-nav {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 160px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.side-nav:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.02);
}
.side-nav-header {
    background: linear-gradient(135deg, var(--primary) 0%, #c0392b 100%);
    color: #fff;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
}
.side-nav-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}
.side-nav-list li {
    margin: 0;
}
.side-nav-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}
.side-nav-list li a:hover,
.side-nav-list li a.active {
    color: var(--primary);
    background: #fdf2f0;
    border-left-color: var(--primary);
}
.sn-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* ====== 通用区块标题 ====== */
.section-header {
    margin-bottom: 60px;
}
.section-header.center {
    text-align: center;
}
.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 16px;
    line-height: 1.3;
}
.section-desc {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* ====== 核心价值主张 ====== */
.value-section {
    padding: 100px 0;
    background: #fff;
}
.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.value-card {
    text-align: center;
    padding: 40px 28px;
    border-radius: var(--radius-lg);
    transition: all 0.4s ease;
    border: 1px solid var(--border);
}
.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
    background: var(--primary-bg);
}
.value-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.value-card:hover .value-icon-wrap {
    background: var(--primary);
    transform: scale(1.1);
}
.value-icon {
    font-size: 32px;
}
.value-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 12px;
}
.value-desc {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* ====== 智能门禁系统 ====== */
.features-section {
    padding: 100px 20px;
    background: var(--bg-light);
}
.access-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 48px;
}
.access-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 320px;
}
.access-device {
    position: relative;
    width: 200px;
    z-index: 2;
}
.device-screen {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    border: 2px solid #2a2a4e;
}
.screen-scan {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,22,29,0.3) 0%, transparent 70%);
    position: relative;
}
.screen-scan::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 2px solid rgba(200,22,29,0.5);
    animation: scanPulse 2s ease-in-out infinite;
}
@keyframes scanPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.9); opacity: 0.5; }
}
.screen-text {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}
.scan-line {
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin-bottom: 8px;
    animation: scanMove 3s ease-in-out infinite;
}
@keyframes scanMove {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
.device-base {
    background: #2a2a4e;
    height: 40px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
}
.device-led {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: ledBlink 2s ease-in-out infinite;
}
@keyframes ledBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.access-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(200,22,29,0.2);
}
.ring-1 {
    width: 280px;
    height: 280px;
    animation: ringPulse 3s ease-in-out infinite;
}
.ring-2 {
    width: 340px;
    height: 340px;
    animation: ringPulse 3s ease-in-out infinite 0.5s;
}
@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.2; }
}
.access-modes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.mode-card {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}
.mode-card:hover,
.mode-card.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.mode-icon {
    font-size: 32px;
    flex-shrink: 0;
}
.mode-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 6px;
}
.mode-info p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}
.mode-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}
.access-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.access-features .af-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-gray);
}
.af-check {
    color: var(--primary);
    font-weight: bold;
    font-size: 16px;
}

/* ====== 智能环境控制 ====== */
.control-section {
    padding: 100px 0;
    background: #fff;
}
.control-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.control-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: all 0.4s ease;
}
.control-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    transform: translateY(-4px);
}
.control-visual {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.light-bulb {
    width: 40px;
    height: 50px;
    background: linear-gradient(180deg, #FFE066 0%, #FFD700 100%);
    border-radius: 20px 20px 10px 10px;
    position: relative;
}
.light-bulb::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 8px;
    background: #B8860B;
    border-radius: 0 0 4px 4px;
}
.light-glow {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255,215,0,0.3) 0%, transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}
.power-panel {
    background: #F3F4F6;
    border-radius: 12px;
    padding: 16px 24px;
}
.power-switch {
    width: 50px;
    height: 28px;
    background: var(--border);
    border-radius: 14px;
    position: relative;
    transition: background 0.3s;
}
.power-switch.on {
    background: var(--primary);
}
.power-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}
.power-switch.on::after {
    transform: translateX(22px);
}
.ac-unit {
    width: 80px;
    height: 50px;
    background: linear-gradient(180deg, #E3F2FD 0%, #BBDEFB 100%);
    border-radius: 8px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.ac-wind {
    width: 6px;
    height: 20px;
    background: var(--primary);
    border-radius: 3px;
    animation: windSpin 1s linear infinite;
}
@keyframes windSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.fan-blade {
    width: 60px;
    height: 60px;
    position: relative;
    animation: fanSpin 0.5s linear infinite;
}
.fan-blade::before,
.fan-blade::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 8px;
    background: linear-gradient(90deg, #6B7280 0%, #9CA3AF 100%);
    border-radius: 4px;
    transform-origin: 0 50%;
}
.fan-blade::before { transform: rotate(30deg); }
.fan-blade::after { transform: rotate(-30deg); }
@keyframes fanSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.control-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 16px;
}
.control-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.control-info li {
    font-size: 14px;
    color: var(--text-gray);
    padding: 6px 0;
    border-bottom: 1px dashed var(--border);
}
.control-info li:last-child {
    border-bottom: none;
}

/* ====== 智能寄存 & 淋浴 ====== */
.locker-section {
    padding: 100px 20px;
    background: var(--bg-light);
}
.locker-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.locker-block,
.shower-block {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.locker-visual {
    display: flex;
    justify-content: center;
}
.locker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.locker-door {
    width: 80px;
    height: 100px;
    background: linear-gradient(180deg, #F3F4F6 0%, #E5E7EB 100%);
    border: 2px solid #D1D5DB;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.locker-door span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #9CA3AF;
}
.locker-door.active {
    background: var(--primary);
    border-color: var(--primary);
}
.locker-door.active span {
    background: #fff;
    color: var(--primary);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.locker-info,
.shower-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.locker-tag,
.shower-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 2px;
}
.locker-info h3,
.shower-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}
.locker-info p,
.shower-info p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}
.locker-features,
.shower-features {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}
.locker-features li,
.shower-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-dark);
}
.locker-features li span,
.shower-features li span {
    color: var(--primary);
    font-weight: bold;
}
.shower-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.shower-head {
    width: 60px;
    height: 40px;
    background: linear-gradient(180deg, #6B7280 0%, #4B5563 100%);
    border-radius: 8px 8px 4px 4px;
    position: relative;
}
.shower-head::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #4B5563;
    border-radius: 0 0 4px 4px;
}
.water-flow {
    width: 4px;
    height: 80px;
    background: linear-gradient(180deg, rgba(59,130,246,0.3) 0%, rgba(59,130,246,0.8) 100%);
    border-radius: 2px;
    animation: waterDrop 1s ease-in-out infinite;
}
@keyframes waterDrop {
    0%, 100% { height: 80px; opacity: 0.8; }
    50% { height: 100px; opacity: 1; }
}

/* ====== 硬件生态 ====== */
.hardware-section {
    padding: 100px 0;
    background: #fff;
}
.hardware-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.hw-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid transparent;
}
.hw-card:hover {
    background: #fff;
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.hw-card .hw-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--primary-bg);
    margin-bottom: 16px;
    transition: all 0.3s;
    font-size: 32px;
}
.hw-card:hover .hw-icon {
    background: var(--primary);
    transform: scale(1.1);
}
.hw-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
}
.hw-card p {
    font-size: 13px;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.5;
}
.hardware-note {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.hardware-note span {
    color: var(--text-gray);
    font-size: 14px;
}

/* ====== 系统端口 ====== */
.ports-section {
    padding: 100px 20px;
    background: var(--bg-light);
}
.ports-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.port-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.4s ease;
    border: 1px solid var(--border);
}
.port-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    transform: translateY(-4px);
}
.port-icon {
    font-size: 40px;
    flex-shrink: 0;
}
.port-body h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 10px;
}
.port-body p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* ====== 行业场景 ====== */
.industry-section {
    padding: 100px 0;
    background: #fff;
}
.industry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.industry-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
}
.industry-card:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.industry-card:hover h4,
.industry-card:hover p {
    color: #fff;
}
.industry-icon {
    font-size: 48px;
    margin-bottom: 16px;
    transition: transform 0.3s;
}
.industry-card:hover .industry-icon {
    transform: scale(1.2);
}
.industry-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
}
.industry-card p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
}

/* ====== 成功案例 ====== */
.cases-section {
    padding: 100px 20px;
    background: var(--bg-light);
}
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}
.case-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all 0.4s ease;
    border: 1px solid var(--border);
}
.case-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}
.case-logo {
    font-size: 48px;
    margin-bottom: 16px;
}
.case-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px;
}
.case-type {
    display: inline-block;
    font-size: 12px;
    color: var(--primary);
    background: var(--primary-bg);
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 16px;
}
.case-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}
.cases-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}
.cs-item {
    text-align: center;
}
.cs-num {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
}
.cs-label {
    display: block;
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 4px;
}

/* ====== 关于我们 ====== */
.about-section {
    padding: 100px 0;
    background: #fff;
}
.about-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.about-left h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 24px;
    line-height: 1.3;
}
.about-left p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0 0 16px;
}
.about-features {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.about-features .af-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-dark);
}
.af-icon {
    font-size: 20px;
}
.about-image {
    margin-bottom: 32px;
}
.about-img-placeholder {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    color: #fff;
}
.placeholder-icon {
    font-size: 64px;
    margin-bottom: 12px;
}
.about-img-placeholder span {
    font-size: 20px;
    font-weight: 600;
}
.about-advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.adv-item {
    text-align: center;
    padding: 20px;
    background: var(--primary-bg);
    border-radius: var(--radius-md);
}
.adv-item strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}
.adv-item span {
    font-size: 13px;
    color: var(--text-gray);
}

/* ====== 响应式 - 首页内容 ====== */
@media (max-width: 1024px) {
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .control-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hardware-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .ports-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cases-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }
    .value-grid {
        grid-template-columns: 1fr;
    }
    .access-showcase {
        grid-template-columns: 1fr;
    }
    .access-features {
        grid-template-columns: 1fr 1fr;
    }
    .control-grid {
        grid-template-columns: 1fr;
    }
    .locker-wrap {
        grid-template-columns: 1fr;
    }
    .hardware-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ports-grid {
        grid-template-columns: 1fr;
    }
    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cases-grid {
        grid-template-columns: 1fr;
    }
    .about-wrap {
        grid-template-columns: 1fr;
    }
    .about-features {
        grid-template-columns: 1fr;
    }
    .about-advantages {
        grid-template-columns: 1fr;
    }
}

/* ====== 滚动动画 ====== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
