/* 
 * 明暗主题自适应样式
 * 使用 CSS 变量和 prefers-color-scheme 媒体查询
 */

/* === 亮色主题变量（默认）=== */
:root {
    color-scheme: light dark;

    /* 主色调 - 更鲜艳 modern */
    --primary-color: #2563eb;
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;
    --primary-bg: #eff6ff;
    --accent-color: #3b82f6;

    /* 背景色 */
    --bg-color: #f3f4f6;
    --bg-pattern:
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(59, 130, 246, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(147, 197, 253, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(191, 219, 254, 0.1) 0px, transparent 50%);
    --body-bg-pattern: var(--bg-pattern);
    --bg-secondary: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);

    /* 文字颜色 */
    --text-color: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --text-heading: #111827;

    /* 边框和阴影 */
    --border-color: rgba(229, 231, 235, 0.8);
    --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-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-hover: var(--shadow-lg);

    /* 其他 */
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-sm: 6px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --backdrop-blur: blur(12px);

    /* 头部和页脚 */
    --header-bg: linear-gradient(to right, rgba(255, 255, 255, 0.95), rgba(240, 249, 255, 0.9));
    --footer-bg: #111827;
    --footer-text: #f3f4f6;

    /* 链接 */
    --link-color: var(--primary-color);
    --link-hover: var(--primary-dark);
}

/* === 暗色主题变量 === */
@media (prefers-color-scheme: dark) {
    :root {
        /* 主色调 */
        --primary-color: #60a5fa;
        --primary-light: #93c5fd;
        --primary-dark: #3b82f6;
        --primary-bg: #1e3a8a;
        --accent-color: #60a5fa;

        /* 背景色 */
        --bg-color: #0f172a;
        --bg-pattern:
            radial-gradient(at 0% 0%, rgba(29, 78, 216, 0.15) 0px, transparent 50%),
            radial-gradient(at 100% 0%, rgba(30, 64, 175, 0.15) 0px, transparent 50%);
        --body-bg-pattern: var(--bg-pattern);
        --bg-secondary: #1e293b;
        --card-bg: rgba(30, 41, 59, 0.7);
        --glass-bg: rgba(15, 23, 42, 0.7);
        --glass-border: rgba(255, 255, 255, 0.1);

        /* 文字颜色 */
        --text-color: #f3f4f6;
        --text-secondary: #9ca3af;
        --text-muted: #6b7280;
        --text-heading: #f9fafb;

        /* 边框和阴影 */
        --border-color: rgba(55, 65, 81, 0.8);
        --shadow-color: rgba(0, 0, 0, 0.5);

        /* 头部和页脚 */
        --header-bg: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(30, 58, 138, 0.9));
        --footer-bg: #020617;
        --footer-text: #e5e7eb;

        /* 链接 */
        --link-color: var(--primary-light);
        --link-hover: var(--primary-color);
    }
}

/* 手动深色模式 */
[data-theme="dark"] {
    --primary-color: #60a5fa;
    --primary-light: #93c5fd;
    --primary-dark: #3b82f6;
    --primary-bg: #1e3a8a;
    --accent-color: #60a5fa;
    --bg-color: #0f172a;
    --bg-pattern:
        radial-gradient(at 0% 0%, rgba(29, 78, 216, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(30, 64, 175, 0.15) 0px, transparent 50%);
    --body-bg-pattern: var(--bg-pattern);
    --bg-secondary: #1e293b;
    --card-bg: rgba(30, 41, 59, 0.7);
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-color: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --text-heading: #f9fafb;
    --border-color: rgba(55, 65, 81, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --header-bg: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(30, 58, 138, 0.9));
    --footer-bg: #020617;
    --footer-text: #e5e7eb;
    --link-color: var(--primary-light);
    --link-hover: var(--primary-color);
}

/* 手动亮色模式（覆盖系统深色偏好）*/
[data-theme="light"] {
    --primary-color: #2563eb;
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;
    --primary-bg: #eff6ff;
    --accent-color: #3b82f6;
    --bg-color: #f3f4f6;
    --bg-pattern:
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(59, 130, 246, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(147, 197, 253, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(191, 219, 254, 0.1) 0px, transparent 50%);
    --body-bg-pattern: var(--bg-pattern);
    --bg-secondary: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --text-color: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --text-heading: #111827;
    --border-color: rgba(229, 231, 235, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --header-bg: linear-gradient(to right, rgba(255, 255, 255, 0.95), rgba(240, 249, 255, 0.9));
    --footer-bg: #111827;
    --footer-text: #f3f4f6;
    --link-color: var(--primary-color);
    --link-hover: var(--primary-dark);
}

/* === 基础样式 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg-color);
    background-image: var(--body-bg-pattern);
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--link-hover);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-weight: 500;
    color: var(--text-color);
}

/* === 布局容器 === */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* === 头部导航 === */
.header {
    background: var(--header-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* 头部装饰背景 - 移除旧的复杂渐变，使用简洁的毛玻璃 */
.header::before {
    display: none;
}

/* 头部底部渐变边框 - 移除，使用border-bottom */
.header::after {
    display: none;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.2rem 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.logo i {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
    flex-wrap: nowrap;
    background: rgba(0, 0, 0, 0.03);
    padding: 5px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .nav-menu {
    background: rgba(255, 255, 255, 0.05);
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.nav-menu a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-menu a.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.nav-menu a::after {
    display: none;
}

/* === 卡片和区块 === */
.section {
    margin-bottom: 30px;
    background-color: var(--card-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.section-header {
    background: transparent;
    color: var(--text-heading);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.section-header i {
    margin-right: 12px;
    color: var(--primary-color);
    font-size: 1.25em;
    background: rgba(37, 99, 235, 0.1);
    padding: 8px;
    border-radius: 8px;
}

.section-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-heading);
}

.section-content {
    padding: 24px;
}

/* === 卡片 === */
.card {
    background-color: var(--card-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(37, 99, 235, 0.3);
}

.card-header {
    padding: 16px 20px;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-heading);
}

.card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i {
    color: var(--primary-color);
}

.card-body {
    padding: 20px;
    flex: 1;
    color: var(--text-secondary);
}

.card-footer {
    padding: 16px 20px;
    background-color: rgba(0, 0, 0, 0.02);
    text-align: right;
    border-top: 1px solid var(--border-color);
}

/* === 按钮 === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* === 新闻列表 === */
.news-list {
    list-style: none;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background-color: var(--bg-secondary);
}

.news-item i {
    color: var(--primary-color);
    margin-right: 10px;
}

.news-item a {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-item .date {
    color: var(--text-muted);
    font-size: 0.85em;
}

/* === 幻灯片 === */
.slideshow {
    position: relative;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.slideshow-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
    z-index: 1;
}

.slideshow-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.slideshow-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow-nav {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 3;
}

.slideshow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slideshow-dot.active,
.slideshow-dot:hover {
    background-color: white;
}

.slideshow-prev,
.slideshow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    transition: var(--transition);
}

.slideshow-prev:hover,
.slideshow-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slideshow-prev {
    left: 20px;
}

.slideshow-next {
    right: 20px;
}

/* === 产品卡片 === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    padding: 15px;
}

.product-title {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 500;
}

.product-desc {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

/* === 页脚 === */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 0;
    text-align: center;
    transition: background-color 0.3s ease;
}

.footer a {
    color: var(--primary-light);
}

.footer a:hover {
    color: white;
}

/* === 网格布局 === */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.col-8 {
    grid-column: span 8;
}

.col-4 {
    grid-column: span 4;
}

.col-4-4-4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* === 响应式设计 === */
@media (max-width: 992px) {

    .grid .col-8,
    .grid .col-4 {
        grid-column: span 12;
    }

    .col-4-4-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .slideshow {
        height: 350px;
    }

    .nav-menu {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .slideshow {
        height: 280px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .col-4-4-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .slideshow {
        height: 220px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* === 表格样式 === */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--card-bg);
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background-color: var(--bg-secondary);
    font-weight: 500;
}

table tbody tr:nth-child(even) {
    background-color: var(--bg-secondary);
}

table tbody tr:hover {
    background-color: var(--border-color);
}

/* === 表单样式 === */
input,
select,
textarea {
    background-color: var(--bg-secondary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

/* === 主题切换按钮（可选手动切换）=== */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 1000;
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* === 页面头部 === */
.page-header {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 0 0 30px 30px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.page-header h1 {
    color: white;
    margin-bottom: 10px;
    font-size: 2em;
    position: relative;
    z-index: 1;
}

.page-header p {
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* === 面包屑导航 === */
.breadcrumb {
    padding: 15px 0;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb span {
    margin: 0 8px;
}

/* === 文章详情 === */
.article-detail {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.article-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.article-header h1 {
    font-size: 24px;
    margin-bottom: 15px;
}

.article-meta {
    color: var(--text-muted);
    font-size: 14px;
}

.article-meta span {
    margin: 0 10px;
}

.article-content {
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-content img {
    max-width: 100%;
    border-radius: var(--border-radius);
    margin: 15px 0;
}

.article-content p {
    margin-bottom: 15px;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.article-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 45%;
    color: var(--text-secondary);
}

.article-nav a:hover {
    color: var(--primary-color);
}

/* === 分类筛选 === */
.category-filter {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-filter .btn {
    background-color: var(--bg-secondary);
    color: var(--text-color);
}

.category-filter .btn.btn-primary,
.category-filter .btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* === 新闻列表页 === */
.news-list-page .news-list-item {
    display: flex;
    padding: 20px;
    margin-bottom: 15px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-list-page .news-list-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.news-list-item .news-date {
    min-width: 70px;
    text-align: center;
    margin-right: 20px;
    padding-right: 20px;
    border-right: 1px solid var(--border-color);
}

.news-list-item .news-date .day {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.news-list-item .news-date .month {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.news-list-item .news-info h3 {
    margin-bottom: 10px;
}

.news-list-item .news-info p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.6;
}

.news-list-item .news-meta {
    color: var(--text-muted);
    font-size: 13px;
}

.news-list-item .news-meta span {
    margin-right: 15px;
}

/* === 分页 === */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding: 20px 0;
}

.page-info {
    color: var(--text-muted);
}

/* === 空状态 === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* === 下载列表 === */
.data-table {
    width: 100%;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

.download-action {
    text-align: center;
    padding: 30px;
    margin-top: 20px;
}

.btn-large {
    padding: 15px 30px;
    font-size: 16px;
}

.btn-large small {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-top: 5px;
}

.btn-primary {
    background-color: var(--primary-color);
}

/* === 返回链接 === */
.back-link {
    margin-top: 30px;
    text-align: center;
}

/* === 联系页面 === */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form .form-control {
    width: 100%;
}

.col-6 {
    grid-column: span 6;
}

@media (max-width: 768px) {
    .col-6 {
        grid-column: span 12;
    }
}

/* === 警告提示 === */
.alert {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.alert-error {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* === 服务列表 === */
.service-item {
    padding: 20px;
    margin-bottom: 15px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.service-item h3 a {
    color: var(--text-color);
}

.service-item h3 a:hover {
    color: var(--primary-color);
}

.service-item p {
    color: var(--text-secondary);
    margin: 15px 0;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}

/* === 产品详情 === */
.product-detail-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.product-detail-image {
    flex: 0 0 300px;
}

.product-detail-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.product-detail-info {
    flex: 1;
}

.product-detail-info h1 {
    margin-bottom: 15px;
}

.product-meta {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.related-products {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.related-products h3 {
    margin-bottom: 20px;
}

/* 相关产品网格 */
.related-products .product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 相关产品卡片 */
.related-products .product-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.related-products .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

/* 相关产品图片 */
.related-products .product-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.related-products .product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.related-products .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-products .product-card:hover .product-image img {
    transform: scale(1.05);
}

.related-products .product-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    color: white;
    font-size: 40px;
}

.related-products .image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-products .product-card:hover .image-overlay {
    opacity: 1;
}

.related-products .view-detail {
    color: white;
    font-weight: 500;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    backdrop-filter: blur(5px);
    font-size: 14px;
}

/* 相关产品详情 */
.related-products .product-details {
    padding: 15px;
}

.related-products .product-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.related-products .product-title a {
    color: var(--text-heading);
    transition: color 0.3s ease;
}

.related-products .product-title a:hover {
    color: var(--primary-color);
}

.no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 48px;
}

@media (max-width: 992px) {
    .related-products .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .related-products .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-detail-header {
        flex-direction: column;
    }

    .product-detail-image {
        flex: none;
    }
}

/* === 视频页面 === */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.video-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.video-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.play-overlay i {
    font-size: 48px;
    color: white;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.video-meta {
    color: var(--text-muted);
    font-size: 13px;
}

.video-player {
    margin-bottom: 20px;
}

.video-player video {
    width: 100%;
    border-radius: var(--border-radius);
}

.video-content {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--border-radius);
}

/* === 购买页面 === */
.buy-page .card {
    margin-bottom: 20px;
}

.selected-product h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.payment-method {
    text-align: center;
    padding: 20px;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.payment-method i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.payment-method h4 {
    margin-bottom: 10px;
}

.contact-info ul {
    list-style: none;
    margin: 15px 0;
}

.contact-info li {
    padding: 8px 0;
}

.contact-info li i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* === 软件介绍页面 === */
.software-intro {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.software-products h2 {
    margin-bottom: 20px;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* === 现代设计元素 === */

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.5);
}

/* 主题切换按钮增强 */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 999;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* 毛玻璃效果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 卡片悬停动画增强 */
.card,
.news-card,
.product-card,
.service-item,
.download-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover,
.news-card:hover,
.product-card:hover,
.service-item:hover,
.download-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 按钮渐变和动画 */
.btn-primary,
.btn-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before,
.btn-gradient:hover::before {
    left: 100%;
}

/* 导航链接过渡动画 */
.nav-menu a {
    transition: all 0.3s ease;
}

/* 骨架屏占位符 */
.skeleton {
    background: linear-gradient(90deg, var(--border-color) 25%, var(--bg-secondary) 50%, var(--border-color) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* 淡入动画 */
.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 图片加载过渡 */
img {
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

img:not([data-src]) {
    opacity: 1;
}

/* 粘性导航增强 */
.header {
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* 深色模式下的毛玻璃效果 */
[data-theme="dark"] .header {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .page-header {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
}

/* 链接悬停波纹效果 */
.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::before {
    width: 100%;

}

/* === 在线客服组件 === */
.chat-toggle {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.5);
}

.chat-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #f44336;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid white;
    font-weight: bold;
}

.chat-popup {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.chat-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    bottom: 160px;
    /* 调整位置避免遮挡按钮 */
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 500;
}

.chat-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

.chat-body {
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.chat-welcome {
    text-align: center;
    margin-bottom: 25px;
}

.chat-avatar {
    width: 60px;
    height: 60px;
    background: rgba(25, 118, 210, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 15px;
}

.chat-welcome h4 {
    margin: 10px 0 5px;
    color: var(--text-color);
}

.chat-welcome p {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0;
}

.chat-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
}

.quick-action {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s;
}

.quick-action:hover {
    border-color: var(--primary-color);
    background-color: rgba(25, 118, 210, 0.05);
    background: var(--bg-secondary);
    /* 备用 */
    transform: translateY(-2px);
}

.quick-action i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

.quick-action span {
    display: block;
    font-size: 14px;
    font-weight: 500;
}

.quick-action small {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: normal;
}

.chat-form h5 {
    margin-bottom: 15px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-form input,
.chat-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-secondary);
    color: var(--text-color);
    font-family: inherit;
    box-sizing: border-box;
    /* 确保 padding 不会撑破容器 */
}

.chat-form textarea {
    resize: vertical;
}

.chat-form button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 深色模式适配 */
[data-theme="dark"] .chat-toggle {
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3);
}

[data-theme="dark"] .chat-badge {
    border-color: #1e1e1e;
}

[data-theme="dark"] .chat-header {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
}

[data-theme="dark"] .chat-avatar {
    background: rgba(144, 202, 249, 0.1);
}

[data-theme="dark"] .quick-action {
    background-color: #2d2d2d;
}

[data-theme="dark"] .quick-action:hover {
    background-color: #383838;
}

[data-theme="dark"] .chat-form input,
[data-theme="dark"] .chat-form textarea {
    background-color: #2d2d2d;
    border-color: #444;
}

[data-theme="dark"] .chat-form input:focus,
[data-theme="dark"] .chat-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}