/* ========================================
   开云体育官网 - 主样式文件
   kaiyun.com
   ======================================== */

/* CSS Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif; color: #1a1a2e; background: #fff; line-height: 1.7; }
a { color: inherit; text-decoration: none; transition: color .3s; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* CSS Variables */
:root {
  --red: #e63946;
  --dark-red: #c1121f;
  --navy: #0d1b2a;
  --dark-navy: #07111a;
  --gold: #f4a261;
  --light-gray: #f8f9fa;
  --gray: #6c757d;
  --border: #e9ecef;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.18);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: .3s ease;
  --max-width: 1200px;
}

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-title { font-size: 2rem; font-weight: 700; color: var(--navy); text-align: center; margin-bottom: 12px; }
.section-subtitle { font-size: 1rem; color: var(--gray); text-align: center; margin-bottom: 48px; max-width: 600px; margin-left: auto; margin-right: auto; }
.section-title span { color: var(--red); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 50px; font-size: .95rem; font-weight: 600; cursor: pointer; transition: var(--transition); border: 2px solid transparent; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--dark-red); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230,57,70,.4); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--red); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--dark-navy); transform: translateY(-2px); }
.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: 24px; }
.text-center { text-align: center; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: .8rem; font-weight: 600; }
.tag-red { background: rgba(230,57,70,.12); color: var(--red); }
.tag-navy { background: rgba(13,27,42,.1); color: var(--navy); }

/* ---- HEADER / NAV ---- */
#header { position: sticky; top: 0; z-index: 1000; background: var(--navy); box-shadow: 0 2px 20px rgba(0,0,0,.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 42px; height: 42px; background: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #fff; font-weight: 900; }
.logo-text { font-size: 1.3rem; font-weight: 800; color: #fff; letter-spacing: .5px; }
.logo-text span { color: var(--gold); }
nav.main-nav { display: flex; align-items: center; gap: 4px; }
nav.main-nav a { color: rgba(255,255,255,.85); padding: 8px 14px; border-radius: var(--radius); font-size: .9rem; font-weight: 500; transition: var(--transition); }
nav.main-nav a:hover, nav.main-nav a.active { color: #fff; background: var(--red); }
.nav-cta { background: var(--red); color: #fff !important; border-radius: 50px !important; padding: 8px 18px !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }
.mobile-nav { display: none; background: var(--dark-navy); padding: 16px 20px; }
.mobile-nav a { display: block; color: rgba(255,255,255,.85); padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .95rem; }
.mobile-nav a:last-child { border-bottom: none; }

/* ---- SEARCH BAR ---- */
#search-bar { background: #162032; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.search-inner { display: flex; align-items: center; justify-content: center; gap: 0; max-width: 600px; margin: 0 auto; }
.search-inner input { flex: 1; padding: 10px 18px; border: 1px solid rgba(255,255,255,.2); border-right: none; border-radius: 50px 0 0 50px; background: rgba(255,255,255,.08); color: #fff; font-size: .9rem; outline: none; }
.search-inner input::placeholder { color: rgba(255,255,255,.4); }
.search-inner button { padding: 10px 22px; background: var(--red); color: #fff; border: none; border-radius: 0 50px 50px 0; cursor: pointer; font-size: .9rem; font-weight: 600; transition: var(--transition); }
.search-inner button:hover { background: var(--dark-red); }

/* ---- HERO BANNER / SLIDER ---- */
#hero { position: relative; overflow: hidden; height: 580px; background: var(--dark-navy); }
.slider-track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.slide { min-width: 100%; height: 100%; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,17,26,.85) 0%, rgba(7,17,26,.4) 60%, transparent 100%); display: flex; align-items: center; }
.slide-content { max-width: 600px; padding: 0 60px; }
.slide-tag { display: inline-block; background: var(--red); color: #fff; padding: 4px 14px; border-radius: 50px; font-size: .8rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 16px; text-transform: uppercase; }
.slide-content h1 { font-size: 2.6rem; font-weight: 900; color: #fff; line-height: 1.25; margin-bottom: 16px; }
.slide-content h1 em { color: var(--gold); font-style: normal; }
.slide-content p { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 28px; }
.slide-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.slider-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.slider-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: var(--transition); }
.slider-dots span.active { background: var(--red); width: 28px; border-radius: 5px; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: rgba(255,255,255,.15); border: none; border-radius: 50%; color: #fff; font-size: 1.2rem; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.slider-arrow:hover { background: var(--red); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* ---- STATS BAR ---- */
#stats { background: var(--red); padding: 28px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item h3 { font-size: 2rem; font-weight: 900; color: #fff; }
.stat-item p { font-size: .85rem; color: rgba(255,255,255,.8); margin-top: 4px; }

/* ---- VIDEO GRID ---- */
#videos { background: var(--light-gray); }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); cursor: pointer; }
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.3); opacity: 0; transition: opacity .3s; }
.video-card:hover .play-btn { opacity: 1; }
.play-icon { width: 56px; height: 56px; background: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.play-icon::after { content: ''; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 4px; }
.video-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.75); color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 4px; }
.video-views { position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,.75); color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 4px; }
.video-info { padding: 16px; }
.video-info .tag { margin-bottom: 8px; }
.video-info h3 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }
.video-meta { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--gray); }
.video-stats { display: flex; gap: 12px; }
.video-stats span { display: flex; align-items: center; gap: 4px; }

/* ---- ABOUT ---- */
#about { background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-content .pre-title { color: var(--red); font-weight: 700; font-size: .85rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.about-content h2 { font-size: 2rem; font-weight: 800; color: var(--navy); margin-bottom: 20px; line-height: 1.3; }
.about-content p { color: var(--gray); margin-bottom: 16px; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.value-item { background: var(--light-gray); padding: 16px; border-radius: var(--radius); border-left: 3px solid var(--red); }
.value-item h4 { font-size: .9rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.value-item p { font-size: .82rem; color: var(--gray); margin: 0; }

/* ---- SERVICES ---- */
#services { background: var(--navy); }
#services .section-title { color: #fff; }
#services .section-subtitle { color: rgba(255,255,255,.65); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 28px 24px; transition: var(--transition); }
.service-card:hover { background: rgba(230,57,70,.15); border-color: var(--red); transform: translateY(-4px); }
.service-icon { width: 52px; height: 52px; background: var(--red); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.service-card p { font-size: .85rem; color: rgba(255,255,255,.6); line-height: 1.6; }

/* ---- CASES ---- */
#cases { background: var(--light-gray); }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.case-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.case-img { aspect-ratio: 16/9; overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.case-card:hover .case-img img { transform: scale(1.05); }
.case-body { padding: 20px; }
.case-body .tag { margin-bottom: 10px; }
.case-body h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.case-body p { font-size: .85rem; color: var(--gray); margin-bottom: 12px; }
.case-result { background: var(--light-gray); border-radius: var(--radius); padding: 10px 14px; font-size: .82rem; color: var(--navy); font-weight: 600; }

/* ---- NEWS ---- */
#news { background: #fff; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: var(--transition); }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.news-img { aspect-ratio: 16/9; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-body { padding: 18px; }
.news-date { font-size: .78rem; color: var(--gray); margin-bottom: 8px; }
.news-body h3 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }
.news-body p { font-size: .83rem; color: var(--gray); }

/* ---- REVIEWS ---- */
#reviews { background: var(--light-gray); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); transition: var(--transition); }
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.review-stars { color: #f4a261; font-size: 1rem; margin-bottom: 12px; }
.review-text { font-size: .9rem; color: #444; line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.review-user { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .9rem; }
.review-name { font-size: .88rem; font-weight: 700; color: var(--navy); }
.review-role { font-size: .78rem; color: var(--gray); }

/* ---- FAQ ---- */
#faq { background: #fff; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-q { padding: 18px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--navy); font-size: .95rem; transition: var(--transition); }
.faq-q:hover { background: var(--light-gray); }
.faq-q.open { background: var(--navy); color: #fff; }
.faq-arrow { font-size: 1.2rem; transition: transform .3s; }
.faq-q.open .faq-arrow { transform: rotate(45deg); }
.faq-a { display: none; padding: 16px 20px; font-size: .9rem; color: var(--gray); line-height: 1.7; border-top: 1px solid var(--border); }

/* ---- PARTNERS ---- */
#partners { background: var(--light-gray); padding: 60px 0; }
.partners-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; align-items: center; }
.partner-logo { background: #fff; border-radius: var(--radius); padding: 16px; text-align: center; font-weight: 800; font-size: .85rem; color: var(--gray); box-shadow: var(--shadow); transition: var(--transition); }
.partner-logo:hover { color: var(--red); transform: scale(1.05); }

/* ---- CONTACT ---- */
#contact { background: var(--navy); }
#contact .section-title { color: #fff; }
#contact .section-subtitle { color: rgba(255,255,255,.6); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info-list { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon { width: 44px; height: 44px; background: var(--red); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-info-item h4 { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 4px; }
.contact-info-item p { color: #fff; font-size: .95rem; font-weight: 600; }
.map-placeholder { background: rgba(255,255,255,.06); border-radius: var(--radius-lg); height: 240px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); font-size: .9rem; border: 1px dashed rgba(255,255,255,.2); }

/* ---- FOOTER ---- */
#footer { background: var(--dark-navy); padding: 50px 0 24px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand .logo-text { font-size: 1.4rem; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: .85rem; color: rgba(255,255,255,.5); line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.5); font-size: .85rem; margin-bottom: 8px; transition: var(--transition); }
.footer-col a:hover { color: var(--red); }
.footer-qr { display: flex; gap: 20px; margin-top: 16px; }
.qr-item { text-align: center; }
.qr-box { width: 80px; height: 80px; background: rgba(255,255,255,.1); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: .65rem; color: rgba(255,255,255,.4); margin-bottom: 6px; border: 1px dashed rgba(255,255,255,.2); }
.qr-item span { font-size: .75rem; color: rgba(255,255,255,.5); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.4); }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: .8rem; color: rgba(255,255,255,.4); transition: var(--transition); }
.footer-links a:hover { color: var(--red); }
.update-time { font-size: .78rem; color: rgba(255,255,255,.3); margin-top: 4px; }

/* ---- APP DOWNLOAD BANNER ---- */
#app-banner { background: linear-gradient(135deg, var(--red) 0%, #c1121f 100%); padding: 60px 0; }
.app-banner-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.app-text h2 { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.app-text p { color: rgba(255,255,255,.85); margin-bottom: 24px; }
.app-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.app-btn { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; padding: 10px 20px; border-radius: var(--radius); transition: var(--transition); }
.app-btn:hover { background: rgba(255,255,255,.25); }
.app-btn-icon { font-size: 1.4rem; }
.app-btn-text small { display: block; font-size: .7rem; opacity: .8; }
.app-btn-text strong { font-size: .95rem; }
.app-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); max-height: 340px; }
.app-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---- BREADCRUMB ---- */
.breadcrumb { background: var(--light-gray); padding: 12px 0; font-size: .85rem; color: var(--gray); }
.breadcrumb a { color: var(--red); }
.breadcrumb span { margin: 0 6px; }

/* ---- PAGE HERO ---- */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, #1a2f4a 100%); padding: 60px 0; text-align: center; }
.page-hero h1 { font-size: 2.2rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 1rem; max-width: 600px; margin: 0 auto; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .grid-4, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .section-title { font-size: 1.6rem; }
  nav.main-nav { display: none; }
  .hamburger { display: flex; }
  #hero { height: 420px; }
  .slide-content { padding: 0 24px; }
  .slide-content h1 { font-size: 1.8rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .app-banner-inner { grid-template-columns: 1fr; }
  .about-img { order: -1; }
  .video-grid, .cases-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .video-grid, .cases-grid, .news-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .slide-content h1 { font-size: 1.5rem; }
  .slide-btns { flex-direction: column; }
}

/* ---- SUPPLEMENTAL STYLES ---- */
/* 面包屑导航增强 */
.breadcrumb .container { display: flex; align-items: center; gap: 6px; }
.breadcrumb span:last-child { color: #333; font-weight: 500; }

/* 合作伙伴区域 */
#partners .section-title { color: var(--navy); }
#partners .section-subtitle { color: var(--gray); }

/* 联系页面增强 */
.contact-info-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 16px; transition: var(--transition); }
.contact-info-item:hover { background: rgba(255,255,255,.1); border-color: var(--red); }

/* 案例结果高亮 */
.case-result { background: rgba(230,57,70,.06); border-left: 3px solid var(--red); padding: 8px 12px; font-size: .82rem; color: var(--red); font-weight: 600; border-radius: 0 6px 6px 0; }

/* 新闻卡片增强 */
.news-body p { font-size: .85rem; color: var(--gray); line-height: 1.7; }

/* APP下载页增强 */
.app-text h1 { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 12px; }

/* 视频模态框 */
#video-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 9999; align-items: center; justify-content: center; }
#video-modal.active { display: flex !important; }

/* 统计数字动画 */
@keyframes countUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.stat-item.animated h3 { animation: countUp .6s ease forwards; }

/* 懒加载占位 */
img[data-src] { background: #e9ecef; min-height: 100px; }

/* 移动端补充 */
@media (max-width: 768px) {
  .about-values { grid-template-columns: 1fr; }
  .app-img { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .page-hero h1 { font-size: 1.6rem; }
}
