/* SEO和用户体验优化样式 */

/* 改善可访问性 */
.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;
}

/* 焦点状态优化 */
.line-button:focus,
.floating-button:focus {
    outline: 3px solid #0066cc;
    outline-offset: 2px;
}

/* 打印样式优化 */
@media print {
    .bg-animation,
    .floating-button-container,
    .countdown {
        display: none !important;
    }
    
    .container {
        box-shadow: none;
        background: white;
    }
    
    .header {
        background: #333 !important;
        color: white !important;
    }
}

/* 改善图片加载优化 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.image-display-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* 风险披露区域样式优化 */
.risk-disclosure-section {
    background: #f8f9fa !important;
    padding: 20px !important;
    margin: 20px !important;
    border-radius: 10px !important;
    border-left: 4px solid #ff6b6b !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.risk-disclosure-section h3 {
    color: #333 !important;
    margin-bottom: 15px !important;
    font-size: 18px;
    font-weight: bold;
}

.risk-disclosure-section ul {
    margin: 10px 0 !important;
    padding-left: 20px !important;
}

.risk-disclosure-section li {
    margin-bottom: 8px;
    color: #555;
}

/* 移动端优化 */
@media (max-width: 480px) {
    .risk-disclosure-section {
        margin: 15px !important;
        padding: 15px !important;
        font-size: 13px;
    }
    
    .risk-disclosure-section h3 {
        font-size: 16px !important;
    }
}

/* 改善载入性能 */
.container {
    will-change: transform;
}

.floating-shape {
    will-change: transform;
}

/* Skip to content链接 (accessibility) */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 4px;
}

.skip-to-content:focus {
    top: 6px;
}

/* 结构化数据标记样式 */
.structured-data {
    display: none;
}

/* Cookie通知样式 (GDPR合规) */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 15px;
    text-align: center;
    z-index: 10000;
    font-size: 14px;
}

.cookie-notice button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    margin-left: 10px;
    cursor: pointer;
}

/* 加载状态优化 */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .header {
        background: #000 !important;
        color: #fff !important;
    }
    
    .line-button,
    .floating-button {
        background: #000 !important;
        color: #fff !important;
        border: 2px solid #fff;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    .floating-shape,
    .badge,
    .countdown-item,
    section {
        animation: none !important;
        transition: none !important;
    }
} 