/* index.css 优化版 - 增强版 */
/* 在 :root 中添加新的颜色变量 */
:root {
    /* 原有变量保持不变 */
    --primary-color: #6c5ce7;
    --primary-dark: #5649c0;
    --secondary-color: #00cec9;
    --text-color: #2d3436;
    --text-secondary: #636e72;
    --bg-color: rgba(245, 247, 250, 0.95);
    --bg-secondary: rgba(255, 255, 255, 0.8);
    --card-bg: rgba(255, 255, 255, 0.7);
    --border-color: rgba(178, 190, 195, 0.3);
    --success-color: #00b894;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --glow: 0 0 20px rgba(108, 92, 231, 0.2);
    
    /* 新增浅粉色主题变量 */
    --pink-primary: #ff9ebb;
    --pink-secondary: #ffc2d6;
    --pink-light: #ffe4ec;
    --pink-dark: #e75480;
    --pink-glow: 0 0 20px rgba(255, 158, 187, 0.4);
    --pink-shadow: 0 8px 25px rgba(255, 158, 187, 0.3);
    --time-bg: rgba(255, 240, 245, 0.95);
    --time-border: rgba(255, 182, 193, 0.6);
    --digit-bg: rgba(255, 255, 255, 0.9);
    --digit-color: #db7093;
    --digit-shadow: 0 4px 15px rgba(219, 112, 147, 0.2);
    
    /* 新增液态玻璃效果变量 */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-height: 100vh;
    position: relative;
}

/* 紧急修复：QQ浏览器警告层问题 */
#browser-warning {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#browser-warning.hidden {
    display: none !important;
}

/* 确保警告层内容也被隐藏 */
#browser-warning .warning-content {
    display: none !important;
}

/* 修复QQ浏览器不透明度问题 */
.time-widget {
    opacity: 1 !important;
}

.theme-control {
    opacity: 1 !important;
}

/* 确保所有重要元素都有明确的不透明度 */
.hero, .features, .footer {
    opacity: 1 !important;
}

/* 添加液态玻璃背景层 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.7) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

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

/* 功能列表样式 */
.features-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffd700;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-description {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* 首页横幅样式 - 液态玻璃效果 */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 80px 20px 40px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 206, 201, 0.15) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: rgba(108, 92, 231, 0.15);
    z-index: -1;
    transform: skewX(-15deg);
    border-radius: 2px;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
}

/* 下载按钮样式 */
.btn-download {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--success-color), #00a085);
    color: white;
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
    width: calc(50% - 8px); /* 立即购买按钮宽度的一半，减去间距 */
    text-align: center;
    margin-top: 10px;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.4);
    background: linear-gradient(135deg, #00a085, var(--success-color));
}

/* 调整按钮布局 */
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* 让立即购买和下载按钮在一行，了解更多在下一行 */
.hero-buttons .btn-primary:nth-child(1),
.hero-buttons .btn-download {
    flex: 1;
    min-width: 140px;
}

.hero-buttons .btn-primary:nth-child(3) {
    flex-basis: 100%;
    margin-top: 10px;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-download {
        width: 100%;
        flex: none;
    }
    
    .hero-buttons .btn-primary:nth-child(3) {
        margin-top: 0;
    }
    
    .btn-download {
        width: 100% !important;
    }
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 400px;
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 10px;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    animation: scroll-bounce 2s infinite;
    cursor: pointer;
}

.arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    margin-top: 5px;
}

@keyframes scroll-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* CTA部分样式 */
.comparison-cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, rgba(0, 206, 201, 0.1) 100%);
    padding: 40px;
    border-radius: 15px;
    margin-top: 40px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.comparison-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.comparison-cta p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* 页脚样式 */
.footer {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
}

.footer-logo img {
    height: 30px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

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

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 回到顶部按钮 */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

#scrollTopBtn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
}

#scrollTopBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.4);
}

/* 字体大小调整样式 */
.font-size-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.preset-btn {
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.preset-btn:hover {
    background: rgba(108, 92, 231, 0.1);
    border-color: var(--primary-color);
}

.preset-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 字体大小预览效果 */
.font-size-preview {
    margin-top: 8px;
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: 6px;
    border: 1px dashed var(--border-color);
    text-align: center;
    font-size: inherit;
    color: var(--text-color);
    transition: all 0.3s ease;
}

/* 响应式调整 */
@media screen and (max-width: 480px) {
    .font-size-presets {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .preset-btn {
        padding: 5px 6px;
        font-size: 0.75rem;
    }
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        margin-top: 40px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-cta {
        padding: 30px 20px;
    }
}

/* 时间小组件样式 - 浅粉色主题 */
.time-widget {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--time-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--time-border);
    border-radius: 20px;
    padding: 20px 25px;
    box-shadow: var(--pink-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

.time-widget:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--pink-shadow), var(--pink-glow);
    border-color: var(--pink-primary);
}

.time-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-section {
    display: flex;
    gap: 6px;
}

/* 时间小组件样式 - 强制定位保护 */
.time-widget {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 1000;
    background: var(--time-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--time-border);
    border-radius: 20px;
    padding: 20px 25px;
    box-shadow: var(--pink-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* 确保不会移动 */
    transform: none !important;
    left: auto !important;
    bottom: auto !important;
}

/* 禁用所有可能导致移动的变换 */
.time-widget:hover,
.time-widget:active,
.time-widget:focus {
    transform: none !important;
    top: 20px !important;
    right: 20px !important;
}

/* 确保数字翻转不会影响整体位置 */
.flip-card {
    position: relative;
    transform: none !important;
}

.flip-card-inner {
    transform-style: preserve-3d;
    /* 确保翻转动画不影响布局 */
    position: absolute;
    top: 0;
    left: 0;
}

.flip-card {
    width: 45px;
    height: 65px;
    perspective: 1000px;
    position: relative;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.flip-card.flipping .flip-card-inner {
    transform: rotateX(-180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
}

.flip-card-front {
    background: linear-gradient(145deg, var(--digit-bg), #ffffff);
    border: 1px solid rgba(255, 182, 193, 0.5);
    box-shadow: var(--digit-shadow);
}

.flip-card-back {
    background: linear-gradient(145deg, var(--pink-primary), var(--pink-dark));
    border: 1px solid var(--pink-primary);
    transform: rotateX(180deg);
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.2);
}

.digit {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--digit-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
}

.flip-card-back .digit {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.time-separator {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pink-dark);
    margin: 0 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: pulse 1.5s infinite;
    position: relative;
    top: -2px;
}

/* 时间小组件样式修复 */
.time-widget {
    /* 确保有固定的transform-origin */
    transform-origin: center center;
    /* 确保过渡效果不会影响位置 */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* 防止点击时选中文本 */
    user-select: none;
    -webkit-user-select: none;
}

/* 确保数字翻转卡片不会影响整体位置 */
.flip-card {
    /* 防止数字翻转影响整体布局 */
    overflow: visible;
}

/* 修复波纹效果位置 */
@keyframes ripple-animation {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.am-pm-indicator {
    margin-left: 15px;
    padding: 6px 12px;
    background: linear-gradient(145deg, var(--pink-light), var(--pink-secondary));
    border-radius: 10px;
    border: 1px solid var(--pink-primary);
    box-shadow: 0 4px 10px rgba(255, 182, 193, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.am-pm-indicator:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 182, 193, 0.4);
}

.am-pm {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pink-dark);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 添加时间小组件标题 */
.time-widget::before {
    content: '当前时间';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--pink-dark);
    background: var(--pink-light);
    padding: 3px 10px;
    border-radius: 10px;
    border: 1px solid var(--pink-primary);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.time-widget:hover::before {
    opacity: 1;
}

/* 主题调节悬浮窗样式 */
.theme-control {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.theme-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    border-radius: 50%;
}

.theme-toggle:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--glow), 0 10px 30px rgba(0, 0, 0, 0.2);
}

.theme-toggle.active {
    transform: rotate(180deg) scale(1.1);
    background: linear-gradient(135deg, var(--pink-primary), var(--pink-dark));
}

.theme-panel {
    position: absolute;
    top: 70px;
    left: 0;
    width: 320px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.theme-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.theme-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.1);
}

.theme-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

.theme-section {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.theme-section:last-of-type {
    border-bottom: none;
}

.theme-section h4 {
    margin: 0 0 12px 0;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 600;
}

.theme-modes, .color-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.mode-btn, .type-btn {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.mode-btn:hover, .type-btn:hover {
    background: rgba(108, 92, 231, 0.1);
    border-color: var(--primary-color);
}

.mode-btn.active, .type-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.color-picker {
    display: flex;
    justify-content: center;
}

.color-picker input[type="color"] {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    background: none;
}

.color-picker input[type="color"]::-webkit-color-swatch {
    border: 3px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.color-picker input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.gradient-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gradient-slider {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gradient-slider label {
    color: var(--text-color);
    font-size: 0.9rem;
    width: 80px;
}

.gradient-slider input[type="color"] {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.gradient-slider input[type="color"]::-webkit-color-swatch {
    border: 2px solid var(--border-color);
    border-radius: 8px;
}

.slider-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-control input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
}

.slider-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.slider-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.4);
}

.slider-control span {
    color: var(--text-color);
    font-size: 0.9rem;
    min-width: 40px;
    text-align: right;
}

.theme-actions {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
}

.theme-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn {
    background: var(--bg-secondary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.reset-btn:hover {
    background: rgba(178, 190, 195, 0.3);
}

.apply-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(108, 92, 231, 0.4);
}

.hidden {
    display: none !important;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .theme-control {
        top: 15px;
        left: 15px;
    }
    
    .theme-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .theme-panel {
        width: 280px;
        left: -10px;
    }
}

@media screen and (max-width: 480px) {
    .theme-control {
        top: 10px;
        left: 10px;
    }
    
    .theme-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .theme-panel {
        width: 260px;
        left: -20px;
    }
    
    .theme-section {
        padding: 12px 15px;
    }
}

/* 响应式设计 - 时间小组件 */
@media screen and (max-width: 768px) {
    .time-widget {
        top: 15px;
        right: 15px;
        padding: 15px 20px;
        border-radius: 15px;
    }
    
    .flip-card {
        width: 35px;
        height: 50px;
    }
    
    .digit {
        font-size: 1.7rem;
    }
    
    .time-separator {
        font-size: 1.4rem;
    }
    
    .am-pm {
        font-size: 0.9rem;
    }
    
    .time-container {
        gap: 8px;
    }
    
    .am-pm-indicator {
        margin-left: 10px;
        padding: 5px 10px;
    }
}

@media screen and (max-width: 480px) {
    .time-widget {
        top: 10px;
        right: 10px;
        padding: 12px 15px;
    }
    
    .flip-card {
        width: 30px;
        height: 42px;
    }
    
    .digit {
        font-size: 1.4rem;
    }
    
    .time-separator {
        font-size: 1.2rem;
    }
    
    .am-pm-indicator {
        margin-left: 8px;
        padding: 4px 8px;
    }
    
    .am-pm {
        font-size: 0.8rem;
    }
}

/* 添加液态玻璃效果到其他元素 */
/* 移除不存在的.navbar选择器，或确保HTML中有对应元素 */

/* 为所有卡片和容器添加液态玻璃效果 */
.feature-card, .comparison-cta, .hero, .footer {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* 添加整体页面加载动画 */
.page-loaded .hero,
.page-loaded .features,
.page-loaded .footer {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* QQ/微信浏览器检测提示层样式 */
.browser-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.browser-warning.hidden {
    display: none;
}

.warning-content {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(255, 107, 107, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: warningPulse 2s infinite;
}

@keyframes warningPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.warning-icon {
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
    animation: icon-bounce 1s infinite;
}

@keyframes icon-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.warning-content h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.warning-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.warning-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-warning-primary {
    padding: 12px 30px;
    background: white;
    color: #ff6b6b;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-warning-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-warning-secondary {
    padding: 12px 30px;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-warning-secondary:hover {
    background: white;
    color: #ff6b6b;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .warning-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .warning-icon {
        font-size: 3rem;
    }
    
    .warning-content h3 {
        font-size: 1.5rem;
    }
    
    .warning-content p {
        font-size: 1rem;
    }
    
    .warning-actions {
        flex-direction: column;
    }
    
    .btn-warning-primary,
    .btn-warning-secondary {
        width: 100%;
    }
    
    }
    
/* QQ浏览器专用警告样式 - 修复灰蒙蒙问题 */
.qq-browser-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85) !important; /* 使用较深的背景 */
    backdrop-filter: none !important; /* QQ浏览器可能不支持，直接禁用 */
    -webkit-backdrop-filter: none !important;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qq-warning-content {
    background: white !important; /* 使用纯白背景确保可见 */
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid #3498db;
    position: relative;
    z-index: 10001;
}

.qq-warning-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 20px;
}

.qq-warning-content h3 {
    color: #2c3e50 !important;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.qq-warning-content p {
    color: #34495e !important;
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 1rem;
}

.qq-warning-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.qq-btn-primary {
    padding: 12px 25px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qq-btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.qq-btn-secondary {
    padding: 12px 25px;
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qq-btn-secondary:hover {
    background: #3498db;
    color: white;
}

/* 确保在QQ浏览器中可见 */
.qq-browser-warning:not(.hidden) {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 主题面板滚动修复 */
.theme-panel {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 简单的滚动条 */
.theme-panel::-webkit-scrollbar {
    width: 8px;
}

.theme-panel::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.theme-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .qq-warning-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .qq-warning-actions {
        flex-direction: column;
    }
    
    .qq-btn-primary,
    .qq-btn-secondary {
        width: 100%;
    }
}