/* 开云体育 (yuecrcz.cn) - 全局样式 */
:root {
    --primary-color: #1E90FF;
    --secondary-color: #00CED1;
    --dark-bg: #0A1628;
    --light-bg: #F5F7FA;
    --text-main: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --border-color: #EEEEEE;
    --hover-color: #00BFFF;
}

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

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--hover-color);
}

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

/* 头部与导航 */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    display: block;
    max-height: 60px;
}

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

.nav a {
    color: var(--text-main);
    font-size: 16px;
    font-weight: bold;
    padding: 10px 0;
    position: relative;
}

.nav a:hover, .nav a.active {
    color: var(--primary-color);
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* 搜索框 */
.search-bar-container {
    background-color: var(--light-bg);
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
}

.search-box button {
    padding: 0 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
}

.search-box button:hover {
    background-color: var(--hover-color);
}

/* 面包屑 */
.breadcrumb {
    padding: 15px 20px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb span {
    color: var(--text-main);
}

/* Banner */
.banner {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-color: var(--dark-bg);
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    width: 80%;
    max-width: 800px;
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-content p {
    font-size: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* 模块通用样式 */
.module {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--light-bg);
    padding: 60px 20px;
    margin: 0 -20px;
}

.bg-dark {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 60px 20px;
    margin: 0 -20px;
}

.module h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.bg-dark h2 {
    color: var(--secondary-color);
}

/* 网格布局 */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* 卡片样式 */
.card {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card h3, .card h4 {
    margin: 15px 0 10px;
    font-size: 20px;
}

.card p {
    color: var(--text-light);
    font-size: 14px;
}

/* 视频卡片 */
.video-card {
    padding: 0;
    overflow: hidden;
}

.video-card h3, .video-card p {
    padding: 0 20px;
}

.video-card p {
    padding-bottom: 20px;
}

.video-placeholder {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    cursor: pointer;
    overflow: hidden;
}

.video-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-placeholder:hover img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(30, 144, 255, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid white;
    margin-left: 5px;
}

.video-placeholder:hover .play-btn {
    background: rgba(0, 206, 209, 0.9);
}

.video-stats {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-light);
}

/* AI 卡片 */
.ai-card {
    border-top: 4px solid var(--secondary-color);
}

/* 社区标签 */
.community-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.tag {
    padding: 10px 25px;
    background: var(--white);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--primary-color);
    color: var(--white);
}

.community-desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
}

/* 专家团队 */
.expert-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.expert-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--secondary-color);
}

.expert-card h3 {
    margin-bottom: 10px;
}

.expert-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
    height: 60px;
}

.btn-outline {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* FAQ 与 评价 */
.faq-list, .review-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item, .review-item {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-color);
}

.faq-item h4 {
    margin-bottom: 10px;
    color: var(--text-main);
}

.stars {
    color: #FFD700;
    margin-bottom: 10px;
    font-size: 18px;
}

.author {
    display: block;
    margin-top: 10px;
    color: var(--text-light);
    font-size: 12px;
    text-align: right;
}

/* 联系与合作 */
.contact-info p {
    margin-bottom: 15px;
    font-size: 16px;
}

.social-share {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    transition: background 0.3s;
}

.share-icon:hover {
    background: var(--primary-color);
    color: var(--white);
}

.qrcode-container {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.qr-box {
    text-align: center;
}

.qr-box img {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 2px solid var(--secondary-color);
}

/* 底部 */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-height: 50px;
    opacity: 0.8;
}

.footer {
    background-color: #050b14;
    color: var(--text-light);
    text-align: center;
    padding: 40px 0;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-light);
    margin: 0 10px;
}

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

.footer p {
    margin-bottom: 10px;
    font-size: 14px;
}

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

.modal-content {
    position: relative;
    width: 80%;
    max-width: 1000px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
}

.video-wrapper {
    width: 100%;
    padding-top: 56.25%;
    position: relative;
}

.mock-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mock-video-screen {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 24px;
    background: #111;
}

.mock-controls {
    height: 50px;
    background: #222;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
    color: #fff;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #444;
    border-radius: 3px;
    cursor: pointer;
}

.progress {
    width: 30%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
}

/* 内页特定样式 */
.section-desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 16px;
    color: var(--text-light);
}

.about-banner {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.about-content p {
    font-size: 16px;
    margin-bottom: 20px;
    text-indent: 2em;
}

.about-content h2 {
    text-align: left;
    margin: 40px 0 20px;
    font-size: 24px;
}

.business-list {
    list-style: none;
    margin-bottom: 30px;
}

.business-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.business-list li::before {
    content: '•';
    color: var(--primary-color);
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -2px;
}

.create-feature {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.create-feature h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 24px;
}

.create-feature p {
    margin-bottom: 30px;
    color: var(--text-light);
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--hover-color);
    color: var(--white);
}

.community-zone {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.community-zone h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.community-zone p {
    color: var(--text-light);
    margin-bottom: 20px;
    height: 48px;
}

.zone-stats {
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
}

.topic-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.topic-item {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
}

.topic-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(30, 144, 255, 0.1);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 15px;
}

.topic-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.topic-item p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.topic-meta {
    font-size: 12px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .header-inner { flex-direction: column; height: auto; padding: 15px 0; }
    .nav ul { margin-top: 15px; flex-wrap: wrap; justify-content: center; gap: 15px; }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .banner { height: 300px; }
    .banner-content h1 { font-size: 32px; }
    .banner-content p { font-size: 16px; }
    .qrcode-container { flex-direction: column; align-items: center; gap: 20px; }
}
