/* ==========================================================================
   字体优化 - 多语言支持
   ========================================================================== */
:root {
    /* 统一字体栈 - 按优先级排列 */
    --font-family: 
        "Segoe UI",           /* Windows 最新系统字体 */
        "PingFang SC",        /* macOS/iOS 中文字体 */
        "Microsoft YaHei",    /* Windows 中文字体 */
        "Hiragino Sans",      /* macOS 日文字体 */
        "Malgun Gothic",      /* Windows 韩文字体 */
        -apple-system,        /* macOS 系统字体 */
        BlinkMacSystemFont,   /* macOS Chrome 字体 */
        Roboto,               /* Android 字体 */
        sans-serif;           /* 后备字体 */
    
    --font-mono: "Consolas", "Monaco", "Courier New", monospace;
}

/* 全局字体设置 */
* {
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 代码字体 */
code, pre, kbd, samp {
    font-family: var(--font-mono);
}

/* 全局居中容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* 强制浅色主题样式 - 防止任何深色主题 */
html {
    background-color: #ffffff !important;
}

body {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
}

/* 英雄区域采用渐变背景 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.hero-section h1,
.hero-section .display-1,
.hero-section .display-2,
.hero-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #667eea !important;
}

.hero-section p,
.hero-section .lead,
.hero-subtitle,
.hero-description {
    color: #495057 !important;
    text-shadow: none !important;
}

/* 确保所有卡片都是白色背景 */
.card {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
}

/* 强制禁用任何深色主题检测 */
@media (prefers-color-scheme: dark) {

    html,
    body {
        background-color: #ffffff !important;
        color: #1a1a1a !important;
    }

    .hero-section {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    }

    .hero-section h1,
    .hero-section .display-1,
    .hero-section .display-2,
    .hero-title {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        color: #667eea !important;
    }

    .hero-section p,
    .hero-section .lead,
    .hero-subtitle,
    .hero-description {
        color: #495057 !important;
        text-shadow: none !important;
    }
}

/* 
 * 高端科技感个人开发者官网样式
 * 现代化设计，深色主题，玻璃拟态效果
 */

/* 全局CSS变量 */
:root {
    /* 科技感配色方案 */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --light-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);

    /* 主色调 */
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #0066cc;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;

    /* 背景色 - 浅色模式 */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --bg-glass-hover: rgba(255, 255, 255, 0.9);

    /* 文字颜色 - 高对比度统一方案 */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #666666;
    --text-light: #888888;
    --text-dark: #000000;

    /* 效果 */
    --glass-backdrop: blur(20px);
    --glow-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --border-glass: 1px solid rgba(0, 0, 0, 0.1);
    --border-radius: 16px;
    --border-radius-small: 8px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 全局重置和基础样式 */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 76px;
    /* 为固定导航栏预留空间 */
}

main {
    flex: 1 0 auto;
    width: 100%;
    margin: 0 auto;
}

/* 确保页面容器居中 */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* 科技感背景动画 - 浅色模式 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 102, 204, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: var(--float-animation);
}

/* 关键帧动画 */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(1deg);
    }

    66% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    }

    50% {
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.8), 0 0 40px rgba(118, 75, 162, 0.3);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}

/* 选择文本样式 */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* ========================
   导航栏样式 - 玻璃拟态设计（浅色模式）
   ======================== */
.navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: var(--glass-backdrop);
    border-bottom: var(--border-glass);
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.navbar-brand i {
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: var(--pulse-animation);
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.75rem 1.25rem !important;
    border-radius: var(--border-radius-small);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: var(--transition);
    z-index: -1;
}

.nav-link:hover {
    color: var(--text-primary) !important;
    background: var(--bg-glass-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.nav-link:hover::before {
    left: 0;
}

.nav-link.active {
    color: var(--primary-color) !important;
    background: var(--bg-glass);
    border: var(--border-glass);
    font-weight: 600;
}

/* 强制导航栏水平排列 */
.navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
}

.navbar-nav .nav-item {
    display: inline-block !important;
    flex-direction: row !important;
}

/* 修复导航栏中登录注册按钮的可见性问题 */
.navbar .btn-outline-light {
    background: transparent !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    border-radius: var(--border-radius-small) !important;
    transition: var(--transition) !important;
}

.navbar .btn-outline-light:hover {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.navbar .btn-outline-light:focus {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
}

/* ========================
   按钮组件 - 科技感设计
   ======================== */
.btn {
    border-radius: var(--border-radius-small);
    font-weight: 600;
    padding: 0.75rem 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn::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: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

.btn-primary:hover {
    background: #5a6fd8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-accent {
    background: var(--accent-color);
    color: white;
    border: none;
    font-weight: 600;
}

.btn-accent:hover {
    background: #0052a3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    font-weight: 600;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ========================
   卡片组件 - 玻璃拟态效果（浅色模式）
   ======================== */
.card {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-backdrop);
    border: var(--border-glass);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-header {
    background: var(--bg-secondary);
    border-bottom: var(--border-glass);
    padding: 1.5rem;
}

.card-body {
    padding: 2rem;
    color: var(--text-secondary);
}

.card-title {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-text {
    line-height: 1.8;
}

/* ========================
   英雄区域 - 首页横幅
   ======================== */

.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 60px;
    box-shadow: 0 8px 40px 0 rgba(102, 126, 234, 0.15);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
    animation: var(--float-animation);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: slideInUp 1s ease-out;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #667eea;
    text-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: #495057 !important;
    margin-bottom: 2.2rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hero-description {
    font-size: 1.1rem;
    color: #6c757d !important;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

@media (max-width: 992px) {
    .hero-section {
        min-height: 60vh;
        padding-top: 90px;
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 50vh;
        padding-top: 70px;
        padding-bottom: 30px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-content {
        border-radius: 15px;
        padding: 2rem 1rem;
        margin: 0 1rem;
    }
}

/* 英雄区域按钮样式优化 */
.hero-section .btn {
    margin: 0.5rem;
    padding: 0.875rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-section .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.hero-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.hero-section .btn-outline-primary {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    backdrop-filter: blur(10px);
}

.hero-section .btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* 英雄区域动画效果增强 */
.hero-section .hero-content {
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 英雄区域装饰元素 */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    z-index: 3;
}

/* ========================
   特色功能区域
   ======================== */
.features-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    height: 100%;
    transition: var(--transition);
    animation: fadeInScale 0.8s ease-out;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    animation: var(--pulse-animation);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========================
   产品展示区域
   ======================== */
.product-card {
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    transform: scale(1.02) translateY(-5px);
}

.product-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.product-image img {
    transition: var(--transition);
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 0.9;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-small);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================
   表单样式
   ======================== */
.form-control {
    background: var(--bg-glass);
    border: var(--border-glass);
    border-radius: var(--border-radius-small);
    color: var(--text-primary);
    padding: 1rem;
    transition: var(--transition);
    backdrop-filter: var(--glass-backdrop);
}

.form-control:focus {
    background: var(--bg-glass-hover);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* ========================
   页脚样式（浅色模式）
   ======================== */
.footer {
    background: var(--bg-secondary);
    border-top: var(--border-glass);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--bg-glass);
    border: var(--border-glass);
    border-radius: 50%;
    color: var(--text-secondary);
    margin: 0 0.5rem;
    transition: var(--transition);
    backdrop-filter: var(--glass-backdrop);
}

.footer-social a:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--glow-shadow);
}

/* ========================
   响应式设计
   ======================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .feature-card {
        margin-bottom: 2rem;
    }

    .card {
        margin-bottom: 2rem;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* ========================
   加载动画和工具类
   ======================== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.text-gradient {
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-accent {
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-effect {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-backdrop);
    border: var(--border-glass);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hover-glow:hover {
    animation: glow 2s ease-in-out infinite;
}

.fade-in {
    animation: slideInUp 0.8s ease-out;
}

.scale-in {
    animation: fadeInScale 0.8s ease-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 576px) {
    .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    .h1,
    h1 {
        font-size: 1.75rem;
    }

    .h2,
    h2 {
        font-size: 1.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }
}

/* 打印样式 */
@media print {

    .navbar,
    footer,
    .btn,
    .card-header {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        padding-top: 60px;
        /* 移动端导航栏通常较小 */
    }
}

/* 强制禁用深色模式 - 始终使用浅色主题 */
@media (prefers-color-scheme: dark) {
    :root {
        /* 强制使用浅色变量 */
        --bg-primary: #ffffff !important;
        --bg-secondary: #f8f9fa !important;
        --bg-tertiary: #e9ecef !important;
        --text-primary: #1a1a1a !important;
        --text-secondary: #4a4a4a !important;
        --text-muted: #666666 !important;
        --light-color: #f8f9fa !important;
        --dark-color: #1a1a1a !important;
    }

    body {
        background-color: #ffffff !important;
        color: #1a1a1a !important;
    }

    .card {
        background-color: #ffffff !important;
        color: #1a1a1a !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
    }

    .hero-section {
        background: linear-gradient(120deg, #f8fafc 0%, #ffffff 60%, #f8fafc 100%) !important;
    }

    .hero-title {
        color: #1a1a1a !important;
    }

    .hero-subtitle {
        color: #4a4a4a !important;
    }

    .hero-description {
        color: #666666 !important;
    }

    .form-control,
    .form-select {
        background-color: #ffffff !important;
        border-color: rgba(0, 0, 0, 0.1) !important;
        color: #1a1a1a !important;
    }

    .navbar {
        background: rgba(255, 255, 255, 0.9) !important;
    }

    .footer {
        background: #f8f9fa !important;
        color: #1a1a1a !important;
    }
}

/* 辅助功能 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 焦点样式 */
a:focus,
button:focus,
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid;
    }

    .card {
        border: 1px solid #000;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================
   额外的科技感效果
   ======================== */

/* 波纹点击效果 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-effect 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 科技圆环 */
.tech-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-glass);
    backdrop-filter: var(--glass-backdrop);
    border: var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
}

/* ========================
   统计数据区域样式优化
   ======================== */

.stats-section {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-backdrop);
    border-top: var(--border-glass);
    border-bottom: var(--border-glass);
    margin: 4rem 0;
    padding: 4rem 0 !important;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
    z-index: -1;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.stat-card .feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
}

.stat-card .feature-icon i {
    font-size: 2rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stat-card .counter {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.stat-card .text-muted {
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .card-body {
    padding: 2.5rem 1.5rem;
    text-align: center;
}

/* 统计卡片动画效果 */
.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    transition: var(--transition);
}

.stat-card:hover::after {
    left: 100%;
}

/* 统计数字动画 */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter {
    animation: countUp 0.6s ease-out;
}

/* 响应式统计卡片 */
@media (max-width: 768px) {
    .stats-section {
        padding: 3rem 0 !important;
        margin: 2rem 0;
    }

    .stat-card .counter {
        font-size: 2.5rem;
    }

    .stat-card .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .stat-card .feature-icon i {
        font-size: 1.5rem;
    }

    .stat-card .card-body {
        padding: 2rem 1rem;
    }
}

/* ========================
   精选产品区域优化
   ======================== */
.featured-products-section {
    padding: 3rem 0;
}

.featured-products-section .product-card {
    margin-bottom: 1.5rem;
}

.featured-products-section .product-image img,
.featured-products-section .placeholder-image {
    height: 180px;
}

.featured-products-section .card-body {
    padding: 1.25rem;
}

.featured-products-section .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.featured-products-section .card-text {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

/* ========================
   高对比度文字增强
   ======================== */

/* 为关键内容添加更好的对比度 */
.hero-section h1,
.hero-section .display-1,
.hero-section .display-2 {
    color: var(--text-dark) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 800;
}

.hero-section p,
.hero-section .lead {
    color: var(--text-secondary) !important;
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 产品卡片文字增强 */
.product-card .card-title {
    color: var(--text-primary) !important;
    font-weight: 700;
    font-size: 1.4rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.product-card .card-text {
    color: var(--text-secondary) !important;
    font-size: 1.1rem;
    line-height: 1.8;
}

.product-card .badge {
    background: var(--accent-gradient) !important;
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: none;
}

/* 统计数字增强 */
.stat-item .stat-number {
    color: var(--text-primary) !important;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item .stat-label {
    color: var(--text-secondary) !important;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 特性卡片文字增强 */
.feature-card h5 {
    color: var(--text-primary) !important;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary) !important;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* FAQ 文字增强 */
.faq-item .btn {
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: left;
}

.faq-item .collapse p {
    color: var(--text-secondary) !important;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* 下载卡片文字增强 */
.download-card .card-title {
    color: var(--text-primary) !important;
    font-weight: 700;
    font-size: 1.3rem;
}

.download-card .version {
    color: var(--accent-color) !important;
    font-weight: 600;
    font-size: 1.1rem;
}

.download-card .file-size {
    color: var(--text-muted) !important;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 支持服务卡片文字增强 */
.support-card h6 {
    color: var(--text-primary) !important;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.support-card p {
    color: var(--text-secondary) !important;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* 技术栈文字 */
.tech-item h6 {
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* 渐变文字效果（用于标题） */
.text-gradient {
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700 !important;
}

.text-accent {
    color: var(--accent-color) !important;
    font-weight: 600;
}

/* 页面标题文字 */
.page-hero h1 {
    color: var(--text-dark) !important;
    font-weight: 800;
    font-size: 3rem;
}

.page-hero .lead {
    color: var(--text-secondary) !important;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
}

/* 响应式文字大小 */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    h4 {
        font-size: 1.5rem;
    }

    p,
    .card-text {
        font-size: 0.95rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .stat-card .counter {
        font-size: 2rem;
    }
}

/* 无障碍访问增强 */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
        --text-muted: #555555;
    }
}

/* 聚焦状态文字 */
:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* 选中文字样式 */
::selection {
    background: var(--accent-color);
    color: white;
}

::-moz-selection {
    background: var(--accent-color);
    color: white;
}

.page-header {
    padding-top: 100px;
}

@media (max-width: 768px) {
    .page-header {
        padding-top: 70px;
    }
}

/* ========================
   页面特定组件文字样式
   ======================== */

/* 英雄区域文字 */
.hero-section h1,
.hero-section .display-1,
.hero-section .display-2 {
    color: white !important;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p,
.hero-section .lead {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 统计卡片文字 */
.stat-card .counter {
    color: var(--primary-color) !important;
    font-weight: 800;
    font-size: 2.5rem;
}

.stat-card .text-muted {
    color: var(--text-muted) !important;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 产品卡片文字 */
.product-card .card-title {
    color: var(--text-dark) !important;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.product-card .card-text {
    color: var(--text-secondary) !important;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
}

.product-card .badge {
    background: var(--primary-color) !important;
    color: white !important;
    font-weight: 600;
    font-size: 0.8rem;
}

/* 特性卡片文字 */
.feature-card h5 {
    color: var(--text-dark) !important;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary) !important;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
}

/* FAQ文字 */
.faq-item .btn {
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: left;
}

.faq-item .collapse p {
    color: var(--text-secondary) !important;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: 1rem;
}

/* 下载卡片文字 */
.download-card .card-title {
    color: var(--text-dark) !important;
    font-weight: 700;
    font-size: 1.25rem;
}

.download-card .version {
    color: var(--accent-color) !important;
    font-weight: 600;
    font-size: 1rem;
}

.download-card .file-size {
    color: var(--text-muted) !important;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 支持服务卡片文字 */
.support-card h6 {
    color: var(--text-dark) !important;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.support-card p {
    color: var(--text-secondary) !important;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
}

/* 技术栈文字 */
.tech-item h6 {
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* 渐变文字效果（用于标题） */
.text-gradient {
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700 !important;
}

.text-accent {
    color: var(--accent-color) !important;
    font-weight: 600;
}

/* 页面标题文字 */
.page-hero h1 {
    color: var(--text-dark) !important;
    font-weight: 800;
    font-size: 3rem;
}

.page-hero .lead {
    color: var(--text-secondary) !important;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
}

/* 响应式文字大小 */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    h4 {
        font-size: 1.5rem;
    }

    p,
    .card-text {
        font-size: 0.95rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .stat-card .counter {
        font-size: 2rem;
    }
}

/* 无障碍访问增强 */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
        --text-muted: #555555;
    }
}

/* 聚焦状态文字 */
:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* 选中文字样式 */
::selection {
    background: var(--accent-color);
    color: white;
}

::-moz-selection {
    background: var(--accent-color);
    color: white;
}