/* ========================================
   昆山嘉弘昌金属制品有限公司 - 企业网站样式
   ======================================== */

/* 基础重置与变量 */
:root {
    --primary-color: #1a56db;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: visible;
    margin: 0;
    padding: 0;
    width: 100%;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    overflow-x: visible;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 1.3rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    padding: 0.4rem 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ========================================
   首页横幅
   ======================================== */
.hero {
    position: relative;
    min-height: 600px;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('../videos/shouye.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.hero-video-bg video {
    display: none; /* 隐藏视频，使用图片背景 */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 86, 219, 0.85) 0%, rgba(30, 64, 175, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease;
}

.hero h1 {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease 0.2s both;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.95;
    line-height: 1.4;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-subtitle {
    font-size: clamp(0.875rem, 1.8vw, 1.125rem);
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

.scroll-indicator span {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.scroll-indicator i {
    font-size: 1.5rem;
}

/* ========================================
   通用部分标题
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header.light {
    color: white;
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(26, 86, 219, 0.1);
    padding: 0.375rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-header.light .section-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.section-header h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-header.light h2 {
    color: white;
}

.section-header p {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-header.light p {
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   关于我们
   ======================================== */
.about {
    padding: 4rem 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-text p {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.about-image {
    position: relative;
}

.image-showcase {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-showcase img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.image-caption i {
    font-size: 1.25rem;
}

/* ========================================
   公司风采 - 图片展示
   ======================================== */
.gallery {
    padding: 4rem 0;
    background: var(--bg-white);
}

.gallery-section {
    margin-bottom: 4rem;
}

.gallery-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gallery-title i {
    color: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(26, 86, 219, 0.9), rgba(26, 86, 219, 0.4));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    gap: 0.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
}

.gallery-overlay span {
    font-size: 1rem;
    font-weight: 500;
}

/* 设备展示轮播 */
.equipment-showcase {
    padding: 1rem 0;
    width: 100%;
    overflow: visible;
}

.equipmentSwiper {
    padding: 2rem 0 3rem;
    width: 100%;
    overflow: visible;
}

/* 设备展示平滑滚动动画 */
.equipmentSwiper .swiper-wrapper {
    display: flex;
    animation: scroll-left 30s linear infinite;
}

.equipmentSwiper:hover .swiper-wrapper {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.equipmentSwiper .swiper-slide {
    height: auto;
    flex-shrink: 0;
}

.equipment-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.equipment-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* 仪器检测卡片样式 - 比设备展示小 */
.instrumentSwiper .equipment-card img {
    height: 140px;
}

.instrumentSwiper .equipment-card {
    width: 200px;
}

.instrumentSwiper .equipment-card .equipment-info {
    padding: 1rem;
}

.instrumentSwiper .equipment-card .equipment-info h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.instrumentSwiper .equipment-card .equipment-info p {
    font-size: 0.75rem;
}

/* 仪器检测平滑滚动动画 - 不同速度 */
.instrumentSwiper .swiper-wrapper {
    display: flex;
    animation: scroll-left 45s linear infinite;
}

.instrumentSwiper:hover .swiper-wrapper {
    animation-play-state: paused;
}

.equipment-info {
    padding: 1.5rem;
}

.equipment-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.equipment-info p {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* 隐藏轮播分页控件 */
.equipmentSwiper .swiper-pagination,
.instrumentSwiper .swiper-pagination {
    display: none;
}

/* Swiper 自定义样式 */
.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

.equipmentSwiper .swiper-button-next,
.equipmentSwiper .swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: background 0.3s;
    margin-top: -14px;
}

.equipmentSwiper .swiper-button-next:hover,
.equipmentSwiper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.6);
}

.equipmentSwiper .swiper-button-next:after,
.equipmentSwiper .swiper-button-prev:after {
    font-size: 0.4rem !important;
    font-weight: bold;
}

/* 团队展示 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.team-photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.team-card:hover .team-photo img {
    transform: scale(1.05);
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.team-info p {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ========================================
   公司介绍视频
   ======================================== */
.company-video {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.company-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
    opacity: 0.5;
}

.video-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: stretch;
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    z-index: 1;
    height: 470px;
    /* 视频封面背景图 */
    background-image: url('../images/video-poster.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
}

.video-overlay:hover {
    background: rgba(0, 0, 0, 0.2);
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.play-button:hover {
    transform: scale(1.1);
    background: white;
}

.play-button i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-left: 5px;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 6;
}

.video-wrapper:hover .video-controls {
    opacity: 1;
}

.progress-bar-container {
    width: 100%;
    margin-bottom: 0.75rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress-filled {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-bar:hover .progress-filled {
    background: var(--primary-light);
}

.control-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.control-btn:hover {
    color: var(--primary-light);
    transform: scale(1.1);
}

.time-display {
    color: white;
    font-size: 0.875rem;
}

.video-info {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-info-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.25rem;
}

.video-info-content > p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1rem;
}

.video-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.video-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.video-stats .stat-item i {
    color: var(--secondary-color);
}

.video-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.video-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    transition: var(--transition);
}

.video-feature:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.video-feature i {
    color: var(--accent-color);
    font-size: 1.25rem;
}

/* ========================================
   产品展示
   ======================================== */
.products {
    padding: 4rem 0;
    background: var(--bg-light);
}

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: white;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.tab-btn:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px rgba(26, 86, 219, 0.4);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.product-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-desc {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.product-specs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-specs span {
    font-size: 0.8rem;
    color: var(--text-lighter);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-specs i {
    color: var(--primary-light);
}

/* 产品视频展示 */
.subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.subsection-title i {
    color: var(--primary-color);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.video-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.video-card .video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.video-card:hover .play-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.play-overlay i {
    font-size: 3rem;
    color: white;
    transition: var(--transition);
}

.video-card:hover .play-overlay i {
    transform: scale(1.1);
}

.play-overlay .duration {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}

.video-info-card {
    padding: 1.25rem;
}

.video-info-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.video-info-card p {
    font-size: 0.875rem;
    color: var(--text-light);
}

.hidden-video {
    display: none;
}

/* ========================================
   服务项目
   ======================================== */
.services {
    padding: 4rem 0;
    background: var(--bg-white);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.service-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    flex: 1 1 280px;
    max-width: 350px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
}

.service-card h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features i {
    color: var(--accent-color);
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    margin-top: auto;
    justify-content: center;
    padding-top: 1rem;
}

.service-link:hover {
    gap: 0.75rem;
}

/* ========================================
   工艺流程
   ======================================== */
.process {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: white;
    position: relative;
}

.process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.process .container {
    position: relative;
    z-index: 1;
}

.process-flow-wrapper {
    margin-bottom: 2rem;
}

.process-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 1rem 0;
}

/* 流程节点 */
.process-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.node-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.node-circle::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.process-node:hover .node-circle {
    transform: scale(1.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.process-node:hover .node-circle::before {
    opacity: 0.3;
}

.process-node.active .node-circle {
    transform: scale(1.1);
    border-color: var(--primary-color);
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.1));
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
}

.node-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.process-node:hover .node-icon {
    color: var(--primary-light);
    transform: scale(1.1);
}

.node-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.node-label {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    transition: var(--transition);
}

.process-node:hover .node-label {
    color: var(--primary-light);
}

/* 高亮节点（喷涂和烘房） */
.node-circle.highlight {
    border-color: rgba(251, 146, 60, 0.5);
}

.node-circle.highlight::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.2) 0%, transparent 70%);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* 成功节点 */
.node-circle.success {
    border-color: rgba(16, 185, 129, 0.5);
}

.node-circle.success::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    animation: pulse-glow 2s ease-in-out infinite;
}

/* 连接线 */
.process-line {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    position: relative;
}

.process-line i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    animation: arrow-pulse 1.5s ease-in-out infinite;
}

@keyframes arrow-pulse {
    0%, 100% { opacity: 0.4; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(3px); }
}

.line-flow {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
    animation: flow 2s linear infinite;
}

@keyframes flow {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

/* 点击提示 */
.process-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 1rem;
    animation: hint-fade 2s ease-in-out infinite;
}

.process-hint i {
    margin-right: 0.5rem;
    color: var(--primary-light);
}

@keyframes hint-fade {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* 详情面板 */
.process-details {
    position: relative;
}

.detail-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 2rem;
    display: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-card.active {
    display: block;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.detail-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    flex: 1;
}

.detail-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-close:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.detail-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-content li {
    position: relative;
    padding: 0.75rem 0 0.75rem 1.75rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-content li:last-child {
    border-bottom: none;
}

.detail-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* ========================================
   企业优势
   ======================================== */
.advantages {
    padding: 4rem 0;
    background: var(--bg-light);
}

.advantages-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 2rem;
}

.advantage-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    flex: 1;
    min-width: 180px;
    max-width: 260px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.advantage-icon {
    width: 55px;
    height: 55px;
    background: rgba(26, 86, 219, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.advantage-item:hover .advantage-icon {
    background: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

.advantage-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.advantage-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   应用领域
   ======================================== */
.applications {
    padding: 4rem 0;
    background: var(--bg-white);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
}

.application-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.application-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.application-icon {
    width: 60px;
    height: 60px;
    background: rgba(26, 86, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.application-card:hover .application-icon {
    background: var(--primary-color);
    color: white;
}

.application-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* ========================================
   联系我们
   ======================================== */
.contact {
    padding: 4rem 0;
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.contact-card {
    flex-shrink: 0;
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: auto;
    flex-shrink: 0;
    height: 280px;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.contact-map {
    position: relative;
}

/* 地图图片样式 */
.contact-map .map-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.contact-map .map-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 地图占位符样式 - 模拟地图外观 */
.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #87CEEB 0%, #87CEEB 60%, #90EE90 60%, #228B22 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 模拟地图的道路 */
.map-placeholder::before {
    content: '';
    position: absolute;
    top: 60%;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 30%, rgba(255,255,255,0.3) 30%, rgba(255,255,255,0.3) 32%, transparent 32%),
        linear-gradient(0deg, transparent 45%, rgba(255,255,255,0.4) 45%, rgba(255,255,255,0.4) 47%, transparent 47%);
}

/* 模拟地图的建筑区域 */
.map-placeholder::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 30%;
    height: 25%;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.map-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.map-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.map-placeholder span {
    font-size: 18px;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(26, 86, 219, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-lighter);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.contact-details p {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    min-height: auto;
    width: 100%;
    box-sizing: border-box;
}

.contact-form h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-form h3 i {
    color: var(--primary-color);
}

.form-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.form-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-lighter);
}

.form-group textarea + i {
    top: 1.25rem;
    transform: none;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group textarea {
    resize: none;
    min-height: 120px;
    max-height: 200px;
    overflow-y: auto;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-lighter);
}

/* 验证码样式 */
.captcha-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.captcha-group > * {
    flex-shrink: 0;
}

.captcha-group i:first-child {
    flex-shrink: 0;
}

.captcha-question {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    min-width: 70px;
    text-align: center;
}

.captcha-group input {
    flex: 1;
    min-width: 80px;
    max-width: 120px;
}

.captcha-refresh {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.captcha-refresh:hover {
    background: var(--primary-dark);
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-brand i {
    color: var(--primary-light);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-back-to-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
}

.footer-back-to-top-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ========================================
   图片模态框
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: var(--radius);
    animation: zoomIn 0.3s ease;
    object-fit: contain;
    margin-top: 60px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: #bbb;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0 30px;
    font-size: 1.125rem;
    margin-top: 10px;
}

/* 视频模态框 */
.video-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.video-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 900px;
}

.video-modal-content video {
    width: 100%;
    border-radius: var(--radius);
}

/* ========================================
   动画
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========================================
   响应式设计 - 等比例缩放
   ======================================== */

/* 使用rem单位实现等比例缩放 - 更平滑的缩放曲线 */
html {
    font-size: 16px;
}

/* 禁用字体大小媒体查询，保持原始大小 */
/*
@media (max-width: 1920px) {
    html { font-size: 15px; }
}
@media (max-width: 1600px) {
    html { font-size: 14px; }
}
@media (max-width: 1440px) {
    html { font-size: 13px; }
}
@media (max-width: 1200px) {
    html { font-size: 12px; }
}
@media (max-width: 992px) {
    html { font-size: 11px; }
}
@media (max-width: 768px) {
    html { font-size: 10px; }
}
@media (max-width: 576px) {
    html { font-size: 9px; }
}
@media (max-width: 375px) {
    html { font-size: 8px; }
}
*/

/* 确保所有元素使用相对单位 */
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
}

/* 确保图片最大宽度不超过容器 */
img {
    max-width: 100%;
    height: auto;
}

/* 确保视频最大宽度不超过容器 */
video {
    max-width: 100%;
    height: auto;
}

/* 备用联系方式样式 */
.backup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.backup-modal {
    background: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.backup-modal h4 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.2rem;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #f9f9f9;
}

.option-card i {
    font-size: 24px;
    color: var(--primary);
}

.option-card div {
    flex: 1;
}

.option-card strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
}

.option-card p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.option-card button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.option-card button:hover {
    background: var(--primary-dark);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

/* 联系选项弹窗样式 */
.contact-options-modal {
    text-align: center;
}

.contact-options h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
}

.contact-options .options-subtitle {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.contact-options .option-card {
    text-align: left;
    flex-direction: row;
    align-items: center;
}

.contact-options .option-card i:first-of-type {
    font-size: 28px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #28a745;
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-options .option-card.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-options .option-card.clickable:hover {
    background: #e8f5e9;
    border-color: #28a745;
    transform: translateX(5px);
}

.contact-options .arrow-icon {
    color: #ccc;
    font-size: 14px;
}

/* 二维码弹窗样式 */
.qr-modal {
    max-width: 450px;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.qr-image {
    width: 250px;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 二维码备用方案样式 */
.qr-fallback {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #09bb07 0%, #007AFF 100%);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 25px rgba(9, 187, 7, 0.3);
    margin-bottom: 15px;
}

.qr-fallback-icon {
    font-size: 60px;
    margin-bottom: 10px;
}

.fallback-content {
    text-align: center;
}

.fallback-content p {
    margin: 5px 0;
}

.wechat-qr {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 3px solid #09bb07;
    background: white;
    padding: 10px;
    margin-bottom: 15px;
}

.qr-image p {
    margin: 10px 0;
    text-align: center;
    color: #333;
}

.qr-tip {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.qr-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    width: 100%;
}

.qr-info p {
    margin: 10px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qr-info i {
    color: var(--primary);
    width: 20px;
}

.qr-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.qr-actions button {
    flex: 1;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qr-actions button:hover {
    background: var(--primary-dark);
}

.qr-actions button:first-child {
    background: #28a745;
}

.qr-actions button:first-child:hover {
    background: #218838;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    z-index: 10000;
    animation: slideIn 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.notification-success {
    background: #28a745;
}

.notification-error {
    background: #dc3545;
}

.notification-info {
    background: #17a2b8;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 添加容器缩放限制 */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.hero h1 {
    font-size: 2.8rem;
}

.hero-title {
    font-size: 1.25rem;
}

.hero-subtitle {
    font-size: 1rem;
}

.section-header h2 {
    font-size: 2rem;
}

.section-header p {
    font-size: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
}

.section-header p {
    font-size: 1.125rem;
}

/* ========================================
   响应式布局
   ======================================== */
/* 禁用小屏幕媒体查询，保持桌面排版 */
@media (max-width: 9999px) {
    /* 所有媒体查询已禁用 */
}

/* 禁用手机端导航菜单 */
@media (max-width: 9999px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        /* 保持桌面端样式 */
        display: flex;
    }
}

/* ========================================
   滚动显示动画
   ======================================== */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}
