/* ========== 全局重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
                 "Microsoft YaHei", "Source Han Sans CN", sans-serif;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #0a1f3d;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ========== 主容器 ========== */
.h5-container {
    width: 100%;
    height: 100vh;
    height: 100dvh; /* 适配移动端动态视口 */
    position: relative;
    overflow: hidden;
}

/* ========== 单页通用样式 ========== */
.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 60px 24px 100px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    opacity: 0;
    visibility: hidden;
}

.page.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease 0.3s both;
}

.page-num {
    display: inline-block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    margin-bottom: 12px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: 4px;
}

.page-en {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 4px;
    font-weight: 300;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== 进度指示器 ========== */
.progress-bar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 1000;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.progress-bar .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.progress-bar .dot.active {
    width: 24px;
    border-radius: 3px;
    background: #fff;
}

/* ========== 音乐按钮 ========== */
.music-btn {
    position: fixed;
    top: 20px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.music-icon {
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 50%;
    position: relative;
    animation: rotate 4s linear infinite;
    animation-play-state: paused;
}

.music-icon::before,
.music-icon::after {
    content: '';
    position: absolute;
    background: #fff;
}

.music-icon::before {
    width: 2px;
    height: 8px;
    right: -1px;
    bottom: 50%;
    transform: translateY(50%);
}

.music-icon::after {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    top: -3px;
    right: 0;
    background: #fff;
}

.music-btn.playing .music-icon {
    animation-play-state: running;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== 第1屏：封面 ========== */
.page-cover {
    background: linear-gradient(135deg, #0a1f3d 0%, #1e3c72 50%, #2a5298 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
}

.cover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 191, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.cover-bg::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.cover-bg::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.cover-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.brand-tag {
    display: inline-block;
    font-size: 12px;
    color: rgba(255, 215, 0, 0.9);
    letter-spacing: 4px;
    padding: 6px 16px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 30px;
    margin-bottom: 40px;
    animation: fadeIn 1s ease 0.3s both;
}

.cover-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 30px;
    letter-spacing: 4px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cover-title .title-line {
    display: block;
    background: linear-gradient(135deg, #fff 0%, #ffd700 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease both;
}

.cover-title .title-line:nth-child(1) {
    animation-delay: 0.5s;
}

.cover-title .title-line:nth-child(2) {
    animation-delay: 0.8s;
    font-size: 56px;
}

.cover-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    margin: 0 auto 30px;
    animation: fadeIn 1s ease 1.2s both;
}

.cover-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 6px;
    margin-bottom: 16px;
    animation: fadeIn 1s ease 1.4s both;
}

.cover-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    animation: fadeIn 1s ease 1.6s both;
}

.cover-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeIn 1s ease 1.8s both, bounce 2s ease-in-out 2.8s infinite;
}

.arrow-down {
    font-size: 24px;
    color: #ffd700;
    transform: rotate(180deg);
}

.arrow-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cover-floating-tag {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    background: linear-gradient(180deg, #ffd700, #ff6b35);
    color: #0a1f3d;
    padding: 16px 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 4px;
    border-radius: 8px 0 0 8px;
    box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease 2s both;
}

/* ========== 第2屏：公司介绍 ========== */
.page-intro {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
}

.intro-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
}

.intro-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 14px 16px;
    transition: transform 0.3s ease;
    animation: fadeInUp 0.6s ease both;
}

.page-intro.active .intro-card:nth-child(1) { animation-delay: 0.4s; }
.page-intro.active .intro-card:nth-child(2) { animation-delay: 0.6s; }
.page-intro.active .intro-card:nth-child(3) { animation-delay: 0.8s; }

.intro-card:active {
    transform: scale(0.98);
}

.intro-icon {
    font-size: 28px;
    margin-bottom: 0;
    flex-shrink: 0;
    line-height: 1.2;
}

.intro-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffd700;
}

.intro-card p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.intro-card strong {
    color: #ffd700;
    font-weight: 700;
}

/* 公司简介海报 */
.page-intro .page-header {
    margin-bottom: 18px;
}

.intro-poster {
    margin-top: 14px;
    animation: fadeInUp 0.6s ease 1s both;
}

.intro-poster img {
    width: 100%;
    display: block;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.intro-poster img.hidden,
.intro-poster.empty {
    display: none;
}

/* ========== 第3屏：展厅规模 ========== */
.page-showroom {
    background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
    color: #fff;
}

.showroom-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px 16px;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-num {
    font-size: 36px;
    font-weight: 900;
    color: #ffd700;
    display: inline-block;
    line-height: 1;
}

.stat-plus {
    font-size: 24px;
    font-weight: 700;
    color: #ffd700;
    display: inline-block;
    vertical-align: top;
    margin-left: 2px;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 6px;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.showroom-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.grid-item {
    aspect-ratio: 1;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 展厅实景通栏大图 */
.showroom-gallery {
    margin-top: 16px;
    animation: fadeInUp 0.6s ease 0.8s both;
}

.showroom-gallery img {
    width: 100%;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.showroom-gallery img.hidden,
.showroom-gallery.empty {
    display: none;
}

.grid-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
}

.grid-item span {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.grid-item:active {
    transform: scale(0.95);
}

.showroom-tip {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 12px;
    animation: fadeIn 1s ease 1s both;
}

/* ========== 第4屏：业务范围 ========== */
.page-business {
    background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%);
    color: #fff;
}

.business-tabs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.biz-card {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease both;
    transition: transform 0.3s ease;
}

.page-business.active .biz-card:nth-child(1) { animation-delay: 0.4s; }
.page-business.active .biz-card:nth-child(2) { animation-delay: 0.6s; }
.page-business.active .biz-card:nth-child(3) { animation-delay: 0.8s; }

.biz-card:active {
    transform: scale(0.98);
}

.biz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ffd700, #ff6b35);
}

.biz-num {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ffd700, #ff6b35);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
}

.biz-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0a1f3d;
    padding-right: 40px;
}

.biz-card > p {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 12px;
}

.biz-card strong {
    color: #d4691a;
    font-weight: 700;
}

.biz-list {
    list-style: none;
    padding-top: 12px;
    border-top: 1px dashed #e0e0e0;
}

.biz-list li {
    font-size: 13px;
    color: #555;
    padding: 4px 0;
    line-height: 1.5;
}

/* ========== 第5屏：合作优势 ========== */
.page-advantages {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: #fff;
}

.advantage-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
}

.adv-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    animation: fadeInUp 0.5s ease both;
    transition: transform 0.3s ease;
}

.page-advantages.active .adv-item:nth-child(1) { animation-delay: 0.3s; }
.page-advantages.active .adv-item:nth-child(2) { animation-delay: 0.4s; }
.page-advantages.active .adv-item:nth-child(3) { animation-delay: 0.5s; }
.page-advantages.active .adv-item:nth-child(4) { animation-delay: 0.6s; }
.page-advantages.active .adv-item:nth-child(5) { animation-delay: 0.7s; }

.adv-item:active {
    transform: translateX(4px);
}

.adv-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ffd700, #ff6b35);
    color: #0a1f3d;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
}

.adv-text h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffd700;
}

.adv-text p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.cta-box {
    background: linear-gradient(135deg, #ffd700, #ff6b35);
    color: #0a1f3d;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
    animation: fadeInUp 0.6s ease 0.9s both;
}

.cta-text {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 6px;
    letter-spacing: 2px;
}

.cta-sub {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ========== 第6屏：联系我们 ========== */
.page-contact {
    background: linear-gradient(135deg, #0a1f3d 0%, #1e3c72 50%, #2a5298 100%);
    color: #fff;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 16px;
    padding: 8px 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.6s ease 0.4s both;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-row:last-child {
    border-bottom: none;
}

.contact-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ffd700, #ff6b35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.contact-row h4 {
    font-size: 12px;
    color: #999;
    font-weight: 500;
    margin-bottom: 4px;
}

.contact-row p {
    font-size: 14px;
    color: #0a1f3d;
    font-weight: 600;
}

.contact-row a {
    color: #d4691a;
}

.contact-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-btn:active {
    transform: scale(0.95);
}

.action-call {
    background: linear-gradient(135deg, #ffd700, #ff6b35);
    color: #0a1f3d;
}

.action-nav {
    background: rgba(255, 255, 255, 0.95);
    color: #0a1f3d;
}

.contact-tip {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    letter-spacing: 1px;
    animation: fadeIn 1s ease 0.8s both;
}

.qr-code-placeholder {
    width: 170px;
    aspect-ratio: 1;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #999;
    border: none;
    animation: fadeIn 1s ease 1s both;
}

.company-fullname {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 16px;
    letter-spacing: 2px;
}

/* ========== 小屏适配 ========== */
@media (max-height: 700px) {
    .cover-title {
        font-size: 40px;
    }
    .cover-title .title-line:nth-child(2) {
        font-size: 48px;
    }
    .cover-floating-tag {
        padding: 10px 6px;
        font-size: 12px;
    }
    .page {
        padding: 50px 20px 80px;
    }
    .page-title {
        font-size: 28px;
    }
}

@media (max-width: 360px) {
    .cover-title {
        font-size: 38px;
    }
    .cover-title .title-line:nth-child(2) {
        font-size: 44px;
    }
    .page {
        padding: 50px 16px 80px;
    }
}

/* ========== 横屏提示 ========== */
@media (orientation: landscape) and (max-height: 500px) {
    .h5-container::after {
        content: '建议竖屏查看 ↑';
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.8);
        color: #fff;
        padding: 12px 24px;
        border-radius: 8px;
        font-size: 14px;
        z-index: 9999;
    }
}