/**
 * 第六日礁岩水族 - 全局主样式
 * 海洋蓝白风格、清晰可读、高端专业
 */

/* ==================== CSS Variables ==================== */
:root {
    /* 主色调 - 清爽海洋风 */
    --primary: #0077b6;
    --primary-dark: #005f8a;
    --primary-light: #00a8e8;
    --accent: #00B4D8;
    --accent-light: #f0c060;

    /* 背景色 - 浅色系，清晰可读 */
    --bg-white: #ffffff;
    --bg-light: #f5f8fb;
    --bg-card: #ffffff;
    --bg-dark: #1a3a5c;

    /* 文字色 - 高对比度 */
    --text-primary: #1a2a3a;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-white: #ffffff;

    /* 边框 */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e0;

    /* 状态色 */
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;

    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);

    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* 过渡 */
    --transition: all 0.3s ease;
}

/* ==================== Reset & Base ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    overflow-x: hidden;
}

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==================== Section ==================== */
.section {
    padding: 5rem 0;
}

.section-bg-ocean {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ==================== Grid System ==================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-white);
    transform: translateY(-2px);
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== Navbar ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
    height: 70px;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

/* 首页导航 - 透明状态文字白色 */
.navbar .nav-logo {
    color: #ffffff;
}

.navbar .nav-logo span {
    color: #ffffff;
}

.navbar .nav-menu a {
    color: rgba(255, 255, 255, 0.9);
}

.navbar .nav-menu a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.navbar .nav-menu a.active {
    color: #ffffff;
    font-weight: 600;
}

.navbar .menu-toggle span {
    background: #ffffff;
}

/* 滚动后 - 深色文字 */
.navbar.scrolled .nav-logo {
    color: var(--text-primary);
}

.navbar.scrolled .nav-logo span {
    color: var(--primary);
}

.navbar.scrolled .nav-menu a {
    color: var(--text-secondary);
}

.navbar.scrolled .nav-menu a:hover {
    color: var(--primary);
    background: rgba(0, 119, 182, 0.08);
}

.navbar.scrolled .nav-menu a.active {
    color: var(--primary);
}

.navbar.scrolled .menu-toggle span {
    background: var(--text-primary);
}

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

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 0.25rem;
}

.nav-menu a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.nav-icon svg {
    width: 16px;
    height: 16px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================== Hero Banner Slider ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0a1628;
}

/* 幻灯片 */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

/* 渐变遮罩 */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.25);
}

/* 内容 */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.hero-content .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.08em;
}

.hero-content .slogan {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    font-weight: 300;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.15em;
}

.hero-content .brand-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 2;
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* 左右箭头 */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-arrow-left {
    left: 2rem;
}

.hero-arrow-right {
    right: 2rem;
}

/* 指示器 */
.hero-dots {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero-dot.active {
    background: #ffffff;
    border-color: #ffffff;
    transform: scale(1.2);
}

.hero-content .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
}

.hero-content .slogan {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    font-weight: 300;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-content .brand-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 2;
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ==================== Page Header ==================== */
.page-header {
    padding: 8rem 0 3rem;
    background: url('../images/banner/reef-banner.jpg') center/cover no-repeat;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ==================== Cards ==================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-body {
    padding: 1.25rem;
}

.card-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 119, 182, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.card-body h3 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==================== Product Cards ==================== */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 1.25rem;
}

.product-category {
    display: inline-block;
    padding: 0.2rem 0.625rem;
    background: rgba(0, 119, 182, 0.1);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==================== Advantage Cards ==================== */
.advantage-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.advantage-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    background: rgba(0, 119, 182, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.advantage-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.advantage-card h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.advantage-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==================== Case Cards ==================== */
.case-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: block;
    text-decoration: none;
}

.case-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--text-white);
}

.case-overlay h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.case-overlay p {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ==================== Article List ==================== */
.article-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    margin-bottom: 1rem;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.article-item:hover {
    box-shadow: var(--shadow-md);
    color: inherit;
}

.article-image {
    flex-shrink: 0;
    width: 200px;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    flex: 1;
    min-width: 0;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-content h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.article-content .excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==================== Breadcrumb ==================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

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

.breadcrumb .separator {
    color: var(--border-medium);
}

/* ==================== Search Box ==================== */
.search-box {
    max-width: 500px;
    margin: 0 auto 2rem;
}

.search-input-group {
    display: flex;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.search-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.search-input-group input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: none;
    outline: none;
    font-size: 0.95rem;
    background: var(--bg-white);
    color: var(--text-primary);
}

.search-input-group input::placeholder {
    color: var(--text-muted);
}

.search-input-group button {
    padding: 0 1.25rem;
    background: var(--primary);
    color: var(--text-white);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.search-input-group button:hover {
    background: var(--primary-dark);
}

/* ==================== Category Tabs ==================== */
.category-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-tabs a {
    padding: 0.5rem 1.25rem;
    color: var(--text-secondary);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.category-tabs a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.category-tabs a.active {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

/* ==================== Detail Page ==================== */
.detail-header {
    padding: 8rem 0 3rem;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.detail-header h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.detail-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.detail-content {
    padding: 3rem 0;
    background: var(--bg-white);
}

.detail-content .content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--text-secondary);
}

.detail-content .content p {
    margin-bottom: 1rem;
}

.detail-content .content h2,
.detail-content .content h3 {
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.detail-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 0;
}

.detail-tabs .tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.detail-tabs .tab-btn:hover {
    color: var(--primary);
}

.detail-tabs .tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ==================== Footer ==================== */
.footer {
    position: relative;
    background: #0a1628;
    color: rgba(255, 255, 255, 0.6);
}

/* 主体内容 */
.footer-body {
    padding: 3rem 0 0;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 四栏布局 */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

/* 标题样式 */
.footer-nav h4,
.footer-info h4 {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

/* 品牌区域 */
.footer-brand {
    padding-right: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0077b6, #00a8e8);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.logo-text {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
}

/* 社交图标 */
.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #0077b6;
    color: #ffffff;
    transform: translateY(-2px);
}

/* 导航链接 */
.footer-nav ul,
.footer-info ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.6rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: #ffffff;
    padding-left: 4px;
}

/* 联系信息列表 */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.contact-list svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #00B4D8;
}

.contact-list span {
    line-height: 1.5;
}

/* 底部版权 */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: rgba(255, 255, 255, 0.6);
}

.footer-beian {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-beian a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-beian a:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    width: 45px;
    height: 45px;
    background: #00B4D8;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #0096B7;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
}

/* 手机端Footer */
@media (max-width: 768px) {
    .footer-wave svg {
        height: 40px;
    }

    .footer-body {
        padding: 2rem 0 0;
    }

    .footer .container {
        padding: 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand {
        padding-right: 0;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-nav h4,
    .footer-info h4 {
        text-align: center;
    }

    .footer-nav ul {
        text-align: center;
    }

    .footer-nav a:hover {
        padding-left: 0;
    }

    .contact-list {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .footer-beian {
        flex-direction: column;
        gap: 0.25rem;
    }

    .back-to-top {
        right: 1rem;
        bottom: 5rem;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        gap: 1.5rem;
    }

    .footer-brand {
        padding-right: 0;
    }
}

/* ==================== Product Detail Page ==================== */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.product-detail-image {
    position: relative;
}

.product-main-image {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    margin-bottom: 12px;
}

.product-main-image img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.product-main-image:hover img {
    transform: scale(1.02);
}

.product-thumb-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.product-thumb {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.product-thumb:hover {
    opacity: 0.8;
}

.product-thumb.active {
    border-color: var(--primary);
    opacity: 1;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info {
    padding-top: 0.5rem;
}

.product-detail-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    font-weight: 700;
}

.product-detail-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.product-detail-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.product-detail-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tag-new {
    padding: 0.375rem 1rem;
    background: rgba(0, 119, 182, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
}

.product-detail-actions-desktop {
    display: flex;
    gap: 1rem;
}

.product-detail-actions-desktop .btn {
    flex: 1;
    text-align: center;
    padding: 0.875rem 1.5rem;
}

.product-detail-actions-mobile {
    display: none;
}

/* 手机端产品详情 */
@media (max-width: 768px) {
    .detail-header {
        padding-top: 5rem;
        padding-bottom: 0;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .product-detail-image {
        margin: 0 -1.5rem;
    }

    .product-main-image {
        border-radius: 0;
        margin-bottom: 0;
    }

    .product-main-image img {
        width: 100%;
        max-height: 300px;
        object-fit: cover;
        border-radius: 0;
    }

    .product-thumb-list {
        padding: 10px 1.5rem;
        gap: 8px;
    }

    .product-thumb {
        width: 60px;
        height: 60px;
    }

    .product-detail-info {
        padding: 1.5rem 0;
    }

    .product-detail-title {
        font-size: 1.375rem;
        margin-bottom: 0.5rem;
    }

    .product-detail-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .product-detail-desc {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
        line-height: 1.7;
        color: var(--text-muted);
    }

    .product-detail-tags {
        margin-bottom: 1.5rem;
        gap: 0.375rem;
    }

    .product-detail-tags .card-tag,
    .product-detail-tags .tag-new {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }

    .product-detail-actions-desktop {
        display: flex;
        gap: 10px;
    }

    .product-detail-actions-desktop .btn {
        flex: 1;
        text-align: center;
        padding: 12px 16px;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    .product-detail-actions-mobile {
        display: none;
    }

    .detail-header {
        padding-bottom: 2rem;
    }

    .section:last-of-type {
        padding-bottom: 6rem;
    }
}

/* ==================== Video Styles ==================== */
.content video,
.detail-content video {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.content iframe,
.detail-content iframe {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.video-wrapper video,
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==================== About Page ==================== */
.about-hero {
    padding: 8rem 0 4rem;
    background: url('../images/banner/reef-banner.jpg') center/cover no-repeat;
    position: relative;
    text-align: center;
    color: var(--text-white);
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 119, 182, 0.75);
}

.about-hero .container {
    position: relative;
    z-index: 1;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.brand-story {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 2;
}

.about-section {
    padding: 5rem 0;
    background: var(--bg-white);
}

.about-section:nth-child(even) {
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* ==================== Floating Contact Button ==================== */
.float-contact-btn {
    position: fixed;
    right: 1.5rem;
    bottom: 5rem;
    z-index: 999;
    width: 48px;
    height: 48px;
    background: #00B4D8;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
    transition: all 0.3s ease;
}

.float-contact-btn:hover {
    background: #0096B7;
    transform: scale(1.1);
}

/* Contact Modal */
.contact-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.contact-modal.active {
    display: flex;
}

.contact-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.contact-modal-box {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    width: 380px;
    max-width: 90%;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.contact-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfc;
}

.contact-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a2a3a;
}

.contact-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 22px;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.contact-modal-close:hover {
    background: #e2e8f0;
    color: #475569;
}

.contact-modal-body {
    padding: 24px;
}

.contact-modal-qr {
    text-align: center;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-modal-qr img {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    background: #f8fafc;
    padding: 10px;
    display: block;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
}

.contact-modal-qr p {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
    width: 100%;
}

.contact-modal-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-modal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
}

.contact-modal-label {
    font-size: 0.8rem;
    color: #64748b;
    width: 48px;
    flex-shrink: 0;
}

.contact-modal-value {
    flex: 1;
    font-size: 0.95rem;
    color: #1a2a3a;
    font-weight: 500;
}

.contact-modal-copy,
.contact-modal-call {
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.contact-modal-copy {
    background: #00B4D8;
    color: #ffffff;
    border: none;
}

.contact-modal-copy:hover {
    background: #0096B7;
}

.contact-modal-call {
    background: #16a34a;
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.contact-modal-call:hover {
    background: #15803d;
    color: #ffffff;
}

/* 手机端弹窗 */
@media (max-width: 768px) {
    .contact-modal-box {
        width: 85%;
        max-width: 300px;
        margin: 0 auto;
    }

    .contact-modal-header {
        padding: 16px 20px;
    }

    .contact-modal-header h3 {
        font-size: 1rem;
    }

    .contact-modal-body {
        padding: 20px;
    }

    .contact-modal-qr {
        margin-bottom: 20px;
    }

    .contact-modal-qr img {
        width: 140px;
        height: 140px;
        padding: 8px;
    }

    .contact-modal-item {
        padding: 12px;
        gap: 10px;
    }

    .contact-modal-label {
        width: 42px;
        font-size: 0.75rem;
    }

    .contact-modal-value {
        font-size: 0.875rem;
    }

    .contact-modal-copy,
    .contact-modal-call {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
}

.contact-modal-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-modal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.contact-modal-label {
    font-size: 0.8rem;
    color: #64748b;
    width: 48px;
    flex-shrink: 0;
}

.contact-modal-value {
    flex: 1;
    font-size: 0.9rem;
    color: #1a2a3a;
    font-weight: 500;
}

.contact-modal-copy,
.contact-modal-call {
    padding: 4px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-modal-copy {
    background: #00B4D8;
    color: #ffffff;
    border: none;
}

.contact-modal-copy:hover {
    background: #0096B7;
}

.contact-modal-call {
    background: #16a34a;
    color: #ffffff;
    text-decoration: none;
}

.contact-modal-call:hover {
    background: #15803d;
    color: #ffffff;
}

/* ==================== Music Player ==================== */
.music-toggle {
    position: fixed;
    right: 1.5rem;
    bottom: 5rem;
    width: 42px;
    height: 42px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.music-toggle:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.music-toggle .music-icon {
    transition: all 0.3s ease;
}

.music-toggle.playing .music-icon.playing {
    animation: musicRotate 2s linear infinite;
}

@keyframes musicRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== Back to Top ==================== */
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 999;
    width: 44px;
    height: 44px;
    background: var(--bg-white);
    color: var(--primary);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
    color: var(--text-white);
}

/* ==================== Pagination ==================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 119, 182, 0.05);
}

.page-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==================== Empty State ==================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ==================== Modal ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    max-width: 300px;
    width: 90%;
    color: var(--text-primary);
}

/* ==================== Placeholder Image ==================== */
.placeholder-img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, var(--bg-light), var(--border-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==================== Scroll Animation ==================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== Anti Counterfeit Page ==================== */
.anti-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
}

.anti-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.anti-card-icon svg {
    width: 32px;
    height: 32px;
}

.anti-card h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.anti-subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.anti-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: none;
    margin-bottom: 0.75rem;
}

.anti-input-group input {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    outline: none;
    font-size: 1rem;
    background: var(--bg-white);
    color: var(--text-primary);
    transition: var(--transition);
}

.anti-input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.anti-input-group input::placeholder {
    color: var(--text-muted);
}

.anti-input-group button {
    padding: 0.875rem 1.5rem;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.anti-input-group button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* 查询结果 */
.anti-result {
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-top: 1.5rem;
    text-align: center;
}

.anti-result-loading {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
}

.anti-result-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.anti-result-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.anti-result-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.anti-result-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.anti-result-success .anti-result-icon {
    color: #16a34a;
}

.anti-result-warning .anti-result-icon {
    color: #f59e0b;
}

.anti-result-error .anti-result-icon {
    color: #dc2626;
}

.anti-result-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.anti-result-success .anti-result-title {
    color: #16a34a;
}

.anti-result-warning .anti-result-title {
    color: #d97706;
}

.anti-result-error .anti-result-title {
    color: #dc2626;
}

.anti-result-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.anti-result-info {
    margin-top: 1.5rem;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.anti-info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.875rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.anti-info-row:last-child {
    border-bottom: none;
}

.anti-info-row span:first-child {
    color: var(--text-muted);
}

.anti-info-row span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

.anti-status-success {
    color: #16a34a !important;
    font-weight: 600 !important;
}

/* 查询说明 */
.anti-tips {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
}

.anti-tips h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    text-align: center;
}

.anti-tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.anti-tip-item {
    text-align: center;
}

.anti-tip-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.75rem;
    background: rgba(0, 119, 182, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
}

.anti-tip-item h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.anti-tip-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 常见问题 */
.anti-faq {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-light);
}

.anti-faq h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    text-align: center;
}

.anti-faq-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.anti-faq-item:last-child {
    border-bottom: none;
}

.anti-faq-item h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    font-weight: 600;
}

.anti-faq-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .anti-card {
        padding: 2rem 1.5rem;
    }

    .anti-card-icon {
        margin-bottom: 1rem;
    }

    .anti-subtitle {
        margin-bottom: 1.5rem;
    }

    .anti-input-group {
        flex-direction: column;
        gap: 0;
    }

    .anti-input-group input {
        padding: 0.875rem 1rem;
    }

    .anti-input-group button {
        justify-content: center;
        padding: 0.875rem;
        margin-top: 0.75rem;
    }

    .anti-tips-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .anti-tips,
    .anti-faq {
        padding: 1.5rem;
    }

    .anti-result {
        padding: 1.5rem;
    }
}

/* ==================== Responsive ==================== */
@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-grid[style*="direction:rtl"] {
        direction: ltr !important;
    }

    .about-grid[style*="direction:rtl"] > * {
        direction: ltr !important;
    }
}

@media (max-width: 768px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero-content .hero-title {
        font-size: 2.25rem;
    }

    .hero-content .slogan {
        font-size: 1.125rem;
    }

    /* 汉堡按钮 */
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .menu-toggle span {
        background: #ffffff;
        transition: all 0.3s ease;
    }

    .navbar.scrolled .menu-toggle span {
        background: #1a2a3a;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background: #1a2a3a;
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        background: #1a2a3a;
    }

    /* 侧边菜单 */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        padding: 80px 20px 30px;
        box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        display: block;
        padding: 14px 16px;
        color: #1a2a3a !important;
        font-size: 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    .nav-menu a:hover {
        background: #f5f8fb;
        color: #0077b6 !important;
    }

    .nav-menu a.active {
        color: #0077b6 !important;
        background: #f0f7ff;
        font-weight: 600;
    }

    /* 遮罩层 */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .article-item {
        flex-direction: column;
    }

    .article-image {
        width: 100%;
    }

    .detail-header {
        padding-top: 6rem;
    }

    .page-header {
        padding-top: 6rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-contact {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content .hero-title {
        font-size: 1.75rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* ==================== 移动端菜单样式（覆盖所有旧样式）==================== */
.mobile-menu-overlay {
    display: none;
}

.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    /* 隐藏桌面菜单 */
    .nav-menu {
        display: none !important;
    }

    /* 隐藏幻灯片指示器和箭头 */
    .hero-dots,
    .hero-arrow {
        display: none !important;
    }

    /* 显示汉堡按钮 */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 8px;
        background: none;
        border: none;
        z-index: 1001;
    }

    .menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: #ffffff;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .navbar.scrolled .menu-toggle span {
        background: #1a2a3a;
    }

    /* 汉堡按钮动画 */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background: #1a2a3a;
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        background: #1a2a3a;
    }

    /* 遮罩层 */
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* 侧边菜单 */
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100%;
        background: #ffffff;
        z-index: 1002;
        transition: right 0.3s ease;
        overflow-y: auto;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .mobile-menu.active {
        right: 0;
    }

    /* 菜单头部 */
    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid #e2e8f0;
        background: #f8fafc;
    }

    .mobile-menu-logo {
        font-size: 16px;
        font-weight: 700;
        color: #1a2a3a;
    }

    .mobile-menu-logo span {
        color: #0077b6;
    }

    .mobile-menu-close {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 24px;
        color: #64748b;
        cursor: pointer;
        border-radius: 4px;
    }

    .mobile-menu-close:hover {
        background: #e2e8f0;
        color: #1a2a3a;
    }

    /* 菜单链接 */
    .mobile-menu-links {
        padding: 10px 0;
    }

    .mobile-menu-links a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 20px;
        color: #1a2a3a !important;
        font-size: 15px;
        border-bottom: 1px solid #f1f5f9;
        text-decoration: none;
    }

    .mobile-menu-links a:last-child {
        border-bottom: none;
    }

    .mobile-menu-links a:hover {
        background: #f5f8fb;
        color: #0077b6 !important;
    }

    .mobile-menu-links a.active {
        color: #0077b6 !important;
        background: #f0f7ff;
        font-weight: 600;
        border-left: 3px solid #0077b6;
    }

    .mobile-menu-links .nav-icon {
        width: 20px;
        height: 20px;
    }

    .mobile-menu-links .nav-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* ==================== Contact Page ==================== */
/* 左右布局 */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h2,
.contact-form-wrapper h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.contact-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* 联系方式卡片 */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    background: var(--bg-white);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: #00B4D8;
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: rgba(0, 180, 216, 0.1);
    color: #00B4D8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card-content {
    flex: 1;
}

.contact-card h3 {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.contact-card-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.contact-card-note {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 联系表单 */
.contact-form-wrapper {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 90px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.contact-form .required {
    color: var(--danger);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-alert {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.form-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.form-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        order: -1;
    }

    .contact-cards {
        gap: 0.75rem;
    }

    .contact-card {
        padding: 1rem;
    }

    .contact-card-icon {
        width: 40px;
        height: 40px;
    }

    .contact-card-icon svg {
        width: 18px;
        height: 18px;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
        position: static;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}
