@charset "utf-8";

/* 变量定义 */
:root {
    --vm-dark: #121212;
    --vm-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --vm-purple: #4f46e5;
    --vm-text-secondary: #9ca3af;

    /* 响应式间距与尺寸变量 */
    --section-padding: clamp(60px, 8vw, 120px);
    --container-width: 1400px;
}

body.vending-machine-page {
    background-color: var(--vm-dark);
    color: #fff;
    font-family: 'PingFang SC', 'Inter', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(15px, 2vw, 30px);
}

/* 标题样式 */
.section-title {
    text-align: center;
    margin-bottom: clamp(40px, 5vw, 80px);
    position: relative;
}

.section-title .bg-title {
    font-size: clamp(28px, 4.5vw, 52px);
    font-weight: 600;
    color: rgba(203, 194, 235, 0.1);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title .title {
    font-size: clamp(22px, 3vw, 38px);
    font-weight: 500;
    color: #fff;
    margin-top: clamp(-20px, -2vw, -30px);
}

.section-title .subtitle {
    font-size: clamp(14px, 1.2vw, 18px);
    color: var(--vm-text-secondary);
    margin-top: 15px;
}

.section-title .title-line {
    width: clamp(40px, 6vw, 80px);
    height: 4px;
    background: var(--vm-purple);
    margin: 20px auto 0;
    border-radius: 10px;
}

/* Header 调整 */
#header.navbar {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#header .nav-inner .menu_link {
    color: #fff;
    font-size: clamp(14px, 1.2vw, 18px);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: clamp(500px, 50vw, 960px);
    overflow: hidden;
}

.top-banner-swiper {
    width: 100%;
    height: 100%;
}

.banner-inner {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    max-width: clamp(300px, 45vw, 700px);
    position: relative;
    z-index: 10;
    margin-left: 11.46vw;
}

.hero-title {
    font-size: clamp(26px, 4.5vw, 62px);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: clamp(14px, 1.8vw, 24px);
    color: #c1c7ff;
    margin-bottom: clamp(20px, 3vw, 40px);
}

.hero-btns {
    display: flex;
    gap: clamp(10px, 1.5vw, 20px);
}

.machine-float {
    position: absolute;
    right: 5%;
    top: 55%;
    transform: translateY(-50%);
    width: clamp(200px, 25vw, 500px);
    z-index: 5;
}

.machine-float img {
    width: 100%;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
}

/* 轮播指示器 */
.banner-scroll {
    position: absolute;
    left: 11.56vw;
    bottom: clamp(20px, 12vw, 14.37vw);
    display: flex;
    z-index: 100;
}

.banner-scroll-block {
    margin-right: 7px;
    width: clamp(40px, 6vw, 81px);
    height: 3px;
    background: rgba(250, 252, 255, 0.4);
    cursor: pointer;
    transition: 0.3s;
}

.banner-scroll-block.active {
    background: #9ba5ff;
}

/* Scenarios Section */
.scenarios-section {
    padding: var(--section-padding) 0;
    background: #fff;
    color: #333;
    background-size: cover;
    background-repeat: no-repeat;
}

.scenarios-section .section-title .title {
    color: #333;
}

.scenarios-section .section-title .bg-title {
    color: rgba(63, 63, 255, 0.05);
}

.scenarios-tabs {
    display: flex;
    justify-content: center;
    gap: clamp(15px, 3vw, 40px);
    margin-bottom: clamp(30px, 4vw, 50px);
}

.tab-item {
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    padding-bottom: 8px;
}

.tab-item.active {
    color: var(--vm-purple);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--vm-purple);
    border-radius: 5px;
}

.scenarios-content {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    overflow: hidden;
}

.scene-panel {
    display: none;
    grid-template-columns: 1fr 1.01fr;
}

.scene-panel.active {
    display: grid;
}

.scene-info {
    padding: clamp(20px, 5vw, 60px);
}

.scene-info h3 {
    font-size: clamp(20px, 2.5vw, 32px);
    margin-bottom: 20px;
}

.scene-info ul {
    list-style: none;
    padding: 0;
}

.scene-info li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: clamp(14px, 1.2vw, 18px);
    line-height: 1.6;
    color: #666;
}

.li-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.li-icon img {
    width: 100%;
}

.scene-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Cooperation Section */
.cooperation-section {
    padding: var(--section-padding) 0;
    background: #000;
}

.flex-row {
    display: flex;
    align-items: center;
    gap: clamp(30px, 5vw, 60px);
}

.coop-image {
    position: relative;
    flex: 1;
}

.coop-image-item {
    display: none;
}

.coop-image-item.active {
    display: block;
}

.coop-image .main-img {
    width: 100%;
    height: clamp(250px, 35vw, 436px);
    object-fit: cover;
    border-radius: 20px;
    transition: opacity 0.5s ease;
}

.coop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.coop-image-item:hover .coop-overlay {
    opacity: 1;
}

.coop-logo {
    max-width: clamp(100px, 15vw, 200px);
}

.coop-content {
    flex: 0.8;
}

.section-title.left {
    text-align: left;
}

.section-title.left .bg-title {
    text-align: left;
    margin-top: 0;
    left: 0;
    transform: none;
}

.coop-list {
    margin-top: clamp(20px, 3vw, 40px);
}

.coop-item {
    background: #1d1d1f;
    padding: clamp(12px, 1.8vw, 20px) clamp(15px, 2.5vw, 30px);
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 20px);
    transition: 0.3s;
    cursor: pointer;
}

.coop-item.active {
    border-image: linear-gradient(90deg, #7587f3, #5fb4ed, #a3e0ce) 1;
}

.coop-idx {
    width: 36px;
    height: 28px;
    border: 1px solid #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.coop-text h4 {
    font-size: clamp(16px, 1.5vw, 20px);
    margin-bottom: 4px;
}

.coop-text p {
    font-size: clamp(11px, 1vw, 14px);
    color: rgba(255, 255, 255, 0.6);
}

/* Machine Features Section */
.machine-features-section {
    padding: var(--section-padding) 0;
    background: #000;
}

.features-content {
    flex: 1;
}

.feature-item {
    margin-bottom: clamp(25px, 3.5vw, 40px);
}

.feature-item h3 {
    font-size: clamp(20px, 2.8vw, 34px);
    margin-bottom: 15px;
}

.feature-item p {
    font-size: clamp(14px, 1.5vw, 20px);
    color: var(--vm-text-secondary);
    line-height: 1.6;
}

.features-image {
    flex: 1;
    text-align: right;
}

.features-image img {
    max-width: 100%;
    filter: drop-shadow(0 0 30px rgba(79, 70, 229, 0.2));
}

/* Machine Tech Details Section */
.machine-tech-section {
    padding: clamp(30px, 4vw, 60px) 0 var(--section-padding);
    background: #000;
}

.tech-detail-img {
    text-align: center;
}

.tech-detail-img img {
    max-width: 100%;
}

/* Comparison Section */
.comparison-section {
    padding: var(--section-padding) 0;
    background: #fff;
    color: #333;
}

.comparison-section .section-title .title {
    color: #333;
}

.compare-table-wrap {
    background: #fff;
    border: 1px solid #f4f4f7;
    border-radius: 15px;
    overflow: hidden;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    padding: clamp(12px, 2vw, 25px) clamp(15px, 2.5vw, 30px);
    text-align: left;
    border-bottom: 1px solid #f4f4f7;
    font-size: clamp(13px, 1.2vw, 16px);
}

.compare-table tr:nth-child(even) {
    background: #f5f6f8;
}

.ver-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ver-name {
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 500;
}

.ver-price {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 600;
}

.ver-unit {
    font-size: 12px;
    color: #666;
}

.ds-btn.sm {
    height: 32px;
    padding: 0 15px;
    font-size: 14px;
    border-radius: 63px;
}

.check-icon {
    width: 20px;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .banner-scroll {
        left: 50%;
        bottom: 25px;
        transform: translateX(-50%);
    }

    .machine-float {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
        padding: 0 20px;
    }

    .hero-btns {
        justify-content: center;
    }

    .scene-panel {
        grid-template-columns: 1fr;
    }

    .flex-row {
        flex-direction: column;
        gap: 30px;
    }

    /* 合作机构：列表在上，图片在下 */
    .cooperation-section .coop-content {
        order: 1;
        width: 100%;
    }

    .cooperation-section .coop-image {
        order: 2;
        width: 100%;
    }

    .coop-image .main-img {
        height: auto;
    }

    .features-content {
        order: 2;
        width: 100%;
    }

    .features-image {
        order: 1;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .compare-table-wrap {
        overflow-x: auto;
    }

    .compare-table {
        min-width: 600px;
    }

    .section-title {
        white-space: nowrap;
    }

    .section-title .subtitle {
        white-space: normal;
    }
}
