/* 开云电竞官网 - 完整样式表 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

body.light-mode {
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    color: #1a1a2e;
}

body.dark-mode {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #e0e0e0;
}

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

header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: background 0.3s;
}

body.light-mode header {
    background: rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #e94560, #0f3460);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    color: inherit;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e94560;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
}

.dark-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: inherit;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

body.light-mode .dark-toggle {
    border-color: rgba(0, 0, 0, 0.3);
}

.hero {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #e94560, #533483);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, #e94560, #533483);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(233, 69, 96, 0.6);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #e94560, #533483);
    margin: 15px auto 0;
    border-radius: 2px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

body.light-mode .card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.1);
}

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

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p {
    opacity: 0.8;
}

.card svg {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 40px 0;
    height: 400px;
}

.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    opacity: 0;
    transition: opacity 0.8s;
    padding: 40px;
    text-align: center;
}

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

.banner-slide svg {
    max-width: 200px;
    margin-right: 30px;
}

.banner-slide h2 {
    font-size: 2rem;
}

.banner-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.banner-controls button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s;
}

.banner-controls button.active {
    background: #e94560;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    margin: 50px 0;
}

.stat-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.stat-item .number {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(45deg, #e94560, #533483);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    margin-bottom: 15px;
    padding: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.faq-item .question {
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
}

.faq-item .answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s, padding 0.4s;
    padding-top: 0;
}

.faq-item.open .answer {
    max-height: 500px;
    padding-top: 15px;
}

.howto-steps {
    counter-reset: step;
    list-style: none;
}

.howto-steps li {
    counter-increment: step;
    margin-bottom: 30px;
    padding-left: 60px;
    position: relative;
}

.howto-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #e94560, #533483);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
}

.article-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.article-card .date {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 10px;
}

.article-card p {
    opacity: 0.8;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #e94560;
    text-decoration: none;
    font-weight: bold;
}

footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-grid h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-grid a {
    display: block;
    color: inherit;
    opacity: 0.7;
    text-decoration: none;
    margin-bottom: 8px;
    transition: opacity 0.3s;
}

.footer-grid a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #e94560, #533483);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.5);
    transition: transform 0.3s;
    z-index: 999;
}

.back-to-top:hover {
    transform: scale(1.1);
}

.search-box {
    display: flex;
    max-width: 400px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: inherit;
    outline: none;
    font-size: 1rem;
}

.search-box button {
    padding: 12px 25px;
    background: #e94560;
    border: none;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

/* 响应式布局 */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 20px;
        gap: 15px;
    }

    nav ul.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .banner-slider {
        height: 300px;
    }

    .banner-slide {
        flex-direction: column;
    }

    .banner-slide svg {
        margin-right: 0;
        margin-bottom: 20px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .banner-slider {
        height: 250px;
    }

    .banner-slide h2 {
        font-size: 1.5rem;
    }
}

/* 滚动动画 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

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

/* SVG图标 */
.svg-icon {
    width: 60px;
    height: 60px;
    fill: #e94560;
}

/* 二维码 */
.qr-code {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 10px;
    padding: 5px;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #e94560, #533483);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #d63850, #44287a);
}

/* 选中文本样式 */
::selection {
    background: #e94560;
    color: #fff;
}

/* 链接样式 */
a {
    color: inherit;
    text-decoration: none;
}

/* 图片响应式 */
img {
    max-width: 100%;
    height: auto;
}

/* 列表样式 */
ul, ol {
    padding-left: 20px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: bold;
}

/* 代码块样式 */
code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

pre code {
    background: none;
    padding: 0;
}

/* 块引用样式 */
blockquote {
    border-left: 4px solid #e94560;
    padding-left: 20px;
    margin: 20px 0;
    opacity: 0.8;
}

/* 水平线样式 */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e94560, transparent);
    margin: 40px 0;
}

/* 按钮样式补充 */
.btn-secondary {
    background: transparent;
    border: 2px solid #e94560;
    color: #e94560;
}

.btn-secondary:hover {
    background: #e94560;
    color: #fff;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(233, 69, 96, 0.2);
    color: #e94560;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 2px;
}

/* 进度条样式 */
.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    background: linear-gradient(45deg, #e94560, #533483);
    border-radius: 5px;
    transition: width 0.6s;
}

/* 提示框样式 */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid;
}

.alert-info {
    background: rgba(233, 69, 96, 0.1);
    border-color: #e94560;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4caf50;
}

.alert-warning {
    background: rgba(255, 152, 0, 0.1);
    border-color: #ff9800;
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    border-color: #f44336;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

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

.modal-content {
    background: #1a1a2e;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 骨架屏加载动画 */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 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;
    }
}

/* 打字机效果 */
.typing {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #e94560;
    animation: typing 3s steps(40) 1s forwards, blink 1s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* 浮动动画 */
.float {
    animation: float 3s ease-in-out infinite;
}

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

/* 脉冲动画 */
.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 旋转动画 */
.spin {
    animation: spin 2s linear infinite;
}

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

/* 淡入动画 */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 幻灯片动画 */
.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 缩放动画 */
.scale-in {
    animation: scaleIn 0.4s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 暗色模式下的其他元素适配 */
body.light-mode .banner-slide {
    background: linear-gradient(135deg, #e8eaf6, #c5cae9);
}

body.light-mode .banner-slide h2 {
    color: #1a1a2e;
}

body.light-mode .banner-slide p {
    color: #333;
}

body.light-mode .faq-item {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .faq-item:hover {
    background: rgba(0, 0, 0, 0.08);
}

body.light-mode .article-card {
    background: rgba(255, 255, 255, 0.8);
}

body.light-mode .stat-item {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode footer {
    background: rgba(0, 0, 0, 0.1);
}

body.light-mode .search-box {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
}

body.light-mode .modal-content {
    background: #f5f5f5;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode code {
    background: rgba(0, 0, 0, 0.1);
}

body.light-mode pre {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode blockquote {
    opacity: 0.9;
}