/* 开云首页 - 完整样式表 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    transition: background 0.3s, color 0.3s;
    scroll-behavior: smooth;
}

body.dark-mode {
    background: #1a1a2e;
    color: #eee;
}

a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    text-decoration: underline;
    color: #0d47a1;
}

/* 头部导航 */
header {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

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

header nav .logo {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

header nav ul li a {
    color: #fff;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    transition: all 0.3s;
}

header nav ul li a:hover {
    color: #ffd700;
    background: rgba(255,255,255,0.15);
    text-decoration: none;
}

.mobile-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    transition: background 0.3s;
}

.mobile-menu:hover {
    background: rgba(255,255,255,0.15);
}

@media (max-width: 768px) {
    header nav ul {
        display: none;
        flex-direction: column;
        background: rgba(0,0,0,0.9);
        backdrop-filter: blur(15px);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 1rem;
        gap: 1rem;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    }
    header nav ul.active {
        display: flex;
    }
    .mobile-menu {
        display: block;
    }
}

/* 暗黑模式切换按钮 */
.dark-mode-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    z-index: 1001;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(26,115,232,0.3);
    transition: all 0.3s;
}

.dark-mode-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,115,232,0.4);
}

/* Hero 区域 */
.hero {
    background: linear-gradient(135deg, #0d47a1, #1a73e8, #4fc3f7);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    color: #fff;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: pulseGlow 8s ease infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.hero .slider {
    display: flex;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.hero .slider .slide {
    min-width: 100%;
    transition: transform 0.5s ease;
}

.hero .slider .slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* 通用区块 */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }
.section:nth-child(5) { animation-delay: 0.4s; }
.section:nth-child(6) { animation-delay: 0.5s; }
.section:nth-child(7) { animation-delay: 0.6s; }
.section:nth-child(8) { animation-delay: 0.7s; }
.section:nth-child(9) { animation-delay: 0.8s; }
.section:nth-child(10) { animation-delay: 0.9s; }
.section:nth-child(11) { animation-delay: 1.0s; }
.section:nth-child(12) { animation-delay: 1.1s; }
.section:nth-child(13) { animation-delay: 1.2s; }
.section:nth-child(14) { animation-delay: 1.3s; }
.section:nth-child(15) { animation-delay: 1.4s; }
.section:nth-child(16) { animation-delay: 1.5s; }

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: #1a73e8;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    margin: 0.8rem auto 0;
    border-radius: 4px;
}

.section h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #0d47a1;
}

/* 网格布局 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* 卡片样式 */
.card {
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    background: rgba(248, 249, 250, 0.95);
}

.card h3 {
    margin-bottom: 1rem;
    color: #0d47a1;
    font-size: 1.4rem;
}

.card p {
    color: #555;
    line-height: 1.7;
}

.dark-mode .card {
    background: rgba(42, 42, 62, 0.8);
    backdrop-filter: blur(10px);
    color: #eee;
    border-color: rgba(255,255,255,0.1);
}

.dark-mode .card p {
    color: #ccc;
}

.dark-mode .card:hover {
    background: rgba(42, 42, 62, 0.95);
}

/* 按钮 */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    padding: 0.8rem 2.5rem;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(26,115,232,0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #0d47a1, #1a73e8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26,115,232,0.4);
    text-decoration: none;
    color: #fff;
}

/* 统计区域 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.stat-item h3 {
    font-size: 2.8rem;
    color: #1a73e8;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.2rem;
    color: #555;
    font-weight: 500;
}

.dark-mode .stat-item {
    background: linear-gradient(135deg, #2a2a3e, #3a3a4e);
}

.dark-mode .stat-item p {
    color: #ccc;
}

/* 评价卡片 */
.testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
}

.testimonial-card .author {
    margin-top: 1.5rem;
    font-weight: bold;
    color: #1a73e8;
    font-size: 1rem;
}

.dark-mode .testimonial-card {
    background: rgba(42, 42, 62, 0.9);
    border-color: rgba(255,255,255,0.1);
}

/* FAQ */
.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 1rem;
    transition: border-color 0.3s;
}

.dark-mode .faq-item {
    border-bottom-color: rgba(255,255,255,0.1);
}

.faq-item h3 {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.faq-item h3:hover {
    color: #1a73e8;
}

.faq-item .answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 0.5rem;
}

.faq-item.active .answer {
    max-height: 300px;
    padding: 0.8rem 0.5rem;
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, #0d47a1, #1a73e8);
    color: #fff;
    padding: 4rem 2rem 2rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ffaa00, #ffd700);
}

footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

footer h4 {
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    color: #ffd700;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.6rem;
}

footer ul li a {
    color: #ccc;
    transition: all 0.3s;
    padding: 0.2rem 0;
}

footer ul li a:hover {
    color: #fff;
    padding-left: 5px;
    text-decoration: none;
}

footer .copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.9rem;
    opacity: 0.9;
}

footer .copyright p {
    margin-bottom: 0.3rem;
}

/* 回到顶部 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(26,115,232,0.3);
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26,115,232,0.4);
}

/* 搜索栏 */
.search-bar {
    display: flex;
    justify-content: center;
    margin: 2.5rem auto 0;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.search-bar input {
    padding: 0.9rem 1.5rem;
    width: 100%;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 30px 0 0 30px;
    outline: none;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-bar input::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-bar input:focus {
    border-color: #ffd700;
    background: rgba(255,255,255,0.25);
}

.search-bar button {
    padding: 0.9rem 1.8rem;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #0d47a1;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-bar button:hover {
    background: linear-gradient(135deg, #ffaa00, #ffd700);
    transform: scale(1.02);
}

/* 响应式 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .section h2 {
        font-size: 2rem;
    }
    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .stat-item h3 {
        font-size: 2rem;
    }
    .search-bar {
        flex-direction: column;
        max-width: 100%;
    }
    .search-bar input {
        border-radius: 30px;
        margin-bottom: 0.5rem;
    }
    .search-bar button {
        border-radius: 30px;
    }
    footer .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
    footer .footer-grid {
        grid-template-columns: 1fr;
    }
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0d47a1, #1a73e8);
}

.dark-mode ::-webkit-scrollbar-track {
    background: #2a2a3e;
}

.dark-mode ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4fc3f7, #1a73e8);
}

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

/* 打印样式 */
@media print {
    .back-to-top,
    .dark-mode-toggle,
    .mobile-menu,
    .search-bar {
        display: none !important;
    }
    body {
        background: #fff !important;
        color: #333 !important;
    }
}