/* 
 * 九色影视 - 主样式表
 * Version: 1.0.0
 * Author: XingYao Media Team
 * 移动端优先响应式设计
 */

/* CSS Reset & Base */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Helvetica Neue",Helvetica,Arial,sans-serif;line-height:1.6;color:#333;background:#fff;min-height:100vh}
img{max-width:100%;height:auto;display:block;border:0}
a{color:#1a73e8;text-decoration:none;transition:color .3s ease}
a:hover{color:#0d47a1}
ul,ol{list-style:none}
h1,h2,h3,h4,h5,h6{font-weight:600;line-height:1.3;color:#1a1a2e}

/* Typography */
.xymedia-title-primary{font-size:2.5rem;margin-bottom:1rem}
.xymedia-title-secondary{font-size:1.875rem;margin-bottom:.75rem}
.xymedia-title-tertiary{font-size:1.5rem;margin-bottom:.5rem}
.xymedia-text-desc{color:#666;font-size:.9375rem;line-height:1.8}
.xymedia-text-highlight{color:#e63946;font-weight:600}

/* Layout Container */
.xycontainer{width:100%;max-width:1200px;margin:0 auto;padding:0 15px}
.xyrow{display:flex;flex-wrap:wrap;margin:0 -15px}
.xycol{padding:0 15px;flex:1}

/* Header Styles */
.xyheader-wrap{position:fixed;top:0;left:0;right:0;z-index:1000;background:rgba(26,26,46,.95);backdrop-filter:blur(10px);transition:all .3s ease}
.xyheader-inner{display:flex;justify-content:space-between;align-items:center;height:70px}
.xylogo-box{display:flex;align-items:center}
.xylogo-text{font-size:1.5rem;font-weight:700;color:#fff;letter-spacing:2px}
.xylogo-text span{color:#e63946}
.xylogo-slogan{font-size:.75rem;color:rgba(255,255,255,.7);margin-left:15px;padding-left:15px;border-left:1px solid rgba(255,255,255,.3)}

/* Navigation */
.xynav-main{display:none}
.xynav-main.active{display:block;position:absolute;top:70px;left:0;right:0;background:#1a1a2e}
.xynav-list{display:flex;flex-direction:column}
.xynav-item{position:relative}
.xynav-link{display:block;padding:15px 20px;color:#fff;font-size:.9375rem;transition:all .3s ease;border-bottom:1px solid rgba(255,255,255,.1)}
.xynav-link:hover,.xynav-link.current{color:#e63946;background:rgba(230,57,70,.1)}
.xymobile-toggle{display:flex;flex-direction:column;justify-content:space-around;width:30px;height:24px;cursor:pointer}
.xymobile-toggle span{display:block;height:3px;background:#fff;border-radius:2px;transition:all .3s ease}

/* Banner Section */
.xybanner-section{position:relative;height:100vh;min-height:500px;overflow:hidden;margin-top:70px}
.xybanner-slider{position:relative;height:100%}
.xybanner-item{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;transition:opacity 1s ease;background-size:cover;background-position:center}
.xybanner-item.active{opacity:1}
.xybanner-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(135deg,rgba(26,26,46,.85) 0%,rgba(26,26,46,.6) 100%)}
.xybanner-content{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;color:#fff;width:90%;max-width:800px}
.xybanner-title{font-size:2rem;margin-bottom:1rem;text-shadow:2px 2px 4px rgba(0,0,0,.3)}
.xybanner-subtitle{font-size:1rem;margin-bottom:2rem;opacity:.9}
.xybanner-btn{display:inline-block;padding:12px 30px;background:#e63946;color:#fff;border-radius:4px;font-weight:600;transition:all .3s ease}
.xybanner-btn:hover{background:#c1121f;color:#fff;transform:translateY(-2px)}
.xybanner-dots{position:absolute;bottom:30px;left:50%;transform:translateX(-50%);display:flex;gap:10px}
.xybanner-dot{width:12px;height:12px;border-radius:50%;background:rgba(255,255,255,.5);cursor:pointer;transition:all .3s ease}
.xybanner-dot.active{background:#e63946;transform:scale(1.2)}

/* Statistics Section */
.xystat-section{padding:60px 0;background:#f8f9fa}
.xystat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.xystat-item{text-align:center;padding:30px 15px;background:#fff;border-radius:8px;box-shadow:0 2px 15px rgba(0,0,0,.05);transition:transform .3s ease}
.xystat-item:hover{transform:translateY(-5px)}
.xystat-icon{width:60px;height:60px;margin:0 auto 15px;background:#e63946;border-radius:50%;display:flex;align-items:center;justify-content:center}
.xystat-icon svg{width:30px;height:30px;fill:#fff}
.xystat-num{font-size:2rem;font-weight:700;color:#1a1a2e;margin-bottom:5px}
.xystat-num span{font-size:1rem;font-weight:400}
.xystat-label{color:#666;font-size:.875rem}

/* Services Section */
.xyservice-section{padding:80px 0;background:linear-gradient(135deg,#1a1a2e 0%,#16213e 100%)}
.xysection-header{text-align:center;margin-bottom:50px}
.xysection-header h2{color:#fff;font-size:2rem;margin-bottom:15px}
.xysection-header .xyline{width:60px;height:3px;background:#e63946;margin:0 auto 20px}
.xysection-header p{color:rgba(255,255,255,.7);max-width:600px;margin:0 auto}
.xyservice-grid{display:grid;grid-template-columns:1fr;gap:20px}
.xyservice-card{background:rgba(255,255,255,.05);border-radius:12px;padding:30px 20px;text-align:center;transition:all .3s ease;border:1px solid rgba(255,255,255,.1)}
.xyservice-card:hover{background:rgba(255,255,255,.1);transform:translateY(-5px)}
.xyservice-icon{width:70px;height:70px;margin:0 auto 20px;background:rgba(230,57,70,.2);border-radius:12px;display:flex;align-items:center;justify-content:center}
.xyservice-icon svg{width:35px;height:35px;fill:#e63946}
.xyservice-card h3{color:#fff;font-size:1.25rem;margin-bottom:10px}
.xyservice-card p{color:rgba(255,255,255,.6);font-size:.875rem;line-height:1.7}
.xyservice-link{display:inline-block;margin-top:15px;color:#e63946;font-size:.875rem}
.xyservice-link:hover{color:#fff}

/* Solutions Section */
.xysolution-section{padding:80px 0;background:#fff}
.xysolution-header{text-align:center;margin-bottom:50px}
.xysolution-header h2{color:#1a1a2e;font-size:2rem;margin-bottom:15px}
.xysolution-header .xyline{width:60px;height:3px;background:#e63946;margin:0 auto 20px}
.xysolution-header p{color:#666;max-width:600px;margin:0 auto}
.xysolution-grid{display:grid;grid-template-columns:1fr;gap:25px}
.xysolution-card{background:#f8f9fa;border-radius:12px;padding:30px;text-align:center;transition:all .3s ease;border:2px solid transparent}
.xysolution-card:hover{border-color:#e63946;box-shadow:0 10px 30px rgba(230,57,70,.1)}
.xysolution-icon{width:80px;height:80px;margin:0 auto 20px;background:#fff;border-radius:16px;display:flex;align-items:center;justify-content:center;box-shadow:0 5px 15px rgba(0,0,0,.08)}
.xysolution-icon svg{width:40px;height:40px;fill:#e63946}
.xysolution-card h3{color:#1a1a2e;font-size:1.25rem;margin-bottom:10px}
.xysolution-card h4{color:#e63946;font-size:.875rem;margin-bottom:15px}
.xysolution-card p{color:#666;font-size:.875rem;line-height:1.7}

/* Cases Section */
.xycase-section{padding:80px 0;background:#f8f9fa}
.xycase-header{text-align:center;margin-bottom:50px}
.xycase-header h2{color:#1a1a2e;font-size:2rem;margin-bottom:15px}
.xycase-header .xyline{width:60px;height:3px;background:#e63946;margin:0 auto 20px}
.xycase-tabs{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-bottom:40px}
.xycase-tab{padding:10px 20px;background:#fff;border:1px solid #ddd;border-radius:4px;cursor:pointer;transition:all .3s ease;font-size:.875rem}
.xycase-tab:hover,.xycase-tab.active{background:#e63946;color:#fff;border-color:#e63946}
.xycase-grid{display:grid;grid-template-columns:1fr;gap:20px}
.xycase-item{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 15px rgba(0,0,0,.05);transition:all .3s ease}
.xycase-item:hover{transform:translateY(-5px);box-shadow:0 10px 30px rgba(0,0,0,.1)}
.xycase-thumb{position:relative;height:200px;background:#1a1a2e;overflow:hidden}
.xycase-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.xycase-item:hover .xycase-thumb img{transform:scale(1.1)}
.xycase-info{padding:20px}
.xycase-info h3{font-size:1.125rem;margin-bottom:10px;color:#1a1a2e}
.xycase-info p{color:#666;font-size:.875rem;line-height:1.6}
.xycase-tag{display:inline-block;padding:4px 12px;background:#f0f0f0;border-radius:4px;font-size:.75rem;color:#666;margin-top:10px}

/* News Section */
.xynews-section{padding:80px 0;background:#fff}
.xynews-header{text-align:center;margin-bottom:50px}
.xynews-header h2{color:#1a1a2e;font-size:2rem;margin-bottom:15px}
.xynews-header .xyline{width:60px;height:3px;background:#e63946;margin:0 auto 20px}
.xynews-grid{display:grid;grid-template-columns:1fr;gap:25px}
.xynews-item{display:flex;flex-direction:column;background:#f8f9fa;border-radius:12px;overflow:hidden;transition:all .3s ease}
.xynews-item:hover{box-shadow:0 10px 30px rgba(0,0,0,.1)}
.xynews-thumb{height:180px;overflow:hidden}
.xynews-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.xynews-item:hover .xynews-thumb img{transform:scale(1.1)}
.xynews-content{padding:20px;flex:1;display:flex;flex-direction:column}
.xynews-date{font-size:.75rem;color:#999;margin-bottom:10px}
.xynews-content h3{font-size:1.125rem;margin-bottom:10px;color:#1a1a2e;line-height:1.5}
.xynews-content p{color:#666;font-size:.875rem;line-height:1.7;flex:1}
.xynews-link{color:#e63946;font-size:.875rem;margin-top:15px}
.xynews-link:hover{color:#c1121f}

/* Partners Section */
.xypartner-section{padding:60px 0;background:#f8f9fa}
.xypartner-header{text-align:center;margin-bottom:40px}
.xypartner-header h2{color:#1a1a2e;font-size:1.75rem;margin-bottom:10px}
.xypartner-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}
.xypartner-item{background:#fff;padding:20px;border-radius:8px;display:flex;align-items:center;justify-content:center;min-height:80px;transition:all .3s ease;border:1px solid #eee}
.xypartner-item:hover{box-shadow:0 5px 20px rgba(0,0,0,.08)}
.xypartner-item img{max-height:40px;filter:grayscale(100%);opacity:.6;transition:all .3s ease}
.xypartner-item:hover img{filter:grayscale(0);opacity:1}

/* About Preview Section */
.xyabout-section{padding:80px 0;background:linear-gradient(135deg,#1a1a2e 0%,#16213e 100%);position:relative;overflow:hidden}
.xyabout-bg{position:absolute;top:0;left:0;right:0;bottom:0;opacity:.1;background-image:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}
.xyabout-content{position:relative;z-index:1}
.xyabout-header{text-align:center;margin-bottom:40px}
.xyabout-header h2{color:#fff;font-size:2rem;margin-bottom:15px}
.xyabout-header .xyline{width:60px;height:3px;background:#e63946;margin:0 auto 20px}
.xyabout-text{color:rgba(255,255,255,.8);text-align:center;max-width:800px;margin:0 auto 40px;line-height:1.8}
.xyabout-features{display:grid;grid-template-columns:1fr;gap:20px}
.xyabout-feature{text-align:center;padding:25px;background:rgba(255,255,255,.05);border-radius:12px;border:1px solid rgba(255,255,255,.1)}
.xyabout-feature h4{color:#e63946;font-size:1.5rem;margin-bottom:5px}
.xyabout-feature p{color:rgba(255,255,255,.7);font-size:.875rem}

/* Footer Styles */
.xyfooter-main{background:#1a1a2e;padding:60px 0 0;color:#fff}
.xyfooter-grid{display:grid;grid-template-columns:1fr;gap:40px;margin-bottom:40px}
.xyfooter-brand h3{font-size:1.5rem;margin-bottom:15px}
.xyfooter-brand h3 span{color:#e63946}
.xyfooter-brand p{color:rgba(255,255,255,.6);font-size:.875rem;line-height:1.8;margin-bottom:20px}
.xyfooter-contact{display:flex;flex-direction:column;gap:10px}
.xyfooter-contact-item{display:flex;align-items:center;gap:10px;color:rgba(255,255,255,.7);font-size:.875rem}
.xyfooter-contact-item svg{width:16px;height:16px;fill:#e63946}
.xyfooter-links h4{color:#fff;font-size:1.125rem;margin-bottom:20px;position:relative;padding-bottom:10px}
.xyfooter-links h4::after{content:'';position:absolute;bottom:0;left:0;width:30px;height:2px;background:#e63946}
.xyfooter-links ul{display:flex;flex-direction:column;gap:10px}
.xyfooter-links a{color:rgba(255,255,255,.6);font-size:.875rem;transition:color .3s ease}
.xyfooter-links a:hover{color:#e63946}
.xyfooter-qrcode{text-align:center}
.xyfooter-qrcode h4{color:#fff;font-size:1.125rem;margin-bottom:20px}
.xyfooter-qrcode-wrap{display:flex;justify-content:center;gap:20px;flex-wrap:wrap}
.xyfooter-qrcode-item{text-align:center}
.xyfooter-qrcode-item img{width:100px;height:100px;background:#fff;padding:5px;border-radius:8px;margin-bottom:10px}
.xyfooter-qrcode-item p{color:rgba(255,255,255,.6);font-size:.75rem}
.xyfooter-social{display:flex;gap:15px;margin-top:20px;justify-content:center}
.xyfooter-social a{width:36px;height:36px;background:rgba(255,255,255,.1);border-radius:50%;display:flex;align-items:center;justify-content:center;transition:all .3s ease}
.xyfooter-social a:hover{background:#e63946}
.xyfooter-social svg{width:18px;height:18px;fill:#fff}
.xyfooter-bottom{border-top:1px solid rgba(255,255,255,.1);padding:20px 0;text-align:center}
.xyfooter-bottom p{color:rgba(255,255,255,.5);font-size:.8125rem}
.xyfooter-bottom a{color:rgba(255,255,255,.5)}
.xyfooter-bottom a:hover{color:#e63946}

/* Breadcrumb */
.xybreadcrumb{padding:15px 0;background:#f8f9fa;margin-top:70px}
.xybreadcrumb-list{display:flex;align-items:center;flex-wrap:wrap;gap:5px}
.xybreadcrumb-item{color:#666;font-size:.875rem}
.xybreadcrumb-item a{color:#666}
.xybreadcrumb-item a:hover{color:#e63946}
.xybreadcrumb-sep{color:#999;margin:0 5px}

/* Page Header */
.xypage-header{padding:60px 0;background:linear-gradient(135deg,#1a1a2e 0%,#16213e 100%);text-align:center;margin-top:70px}
.xypage-header h1{color:#fff;font-size:2rem;margin-bottom:10px}
.xypage-header p{color:rgba(255,255,255,.7)}

/* Content Page */
.xycontent-section{padding:60px 0}
.xycontent-main{max-width:800px;margin:0 auto}
.xycontent-main h2{font-size:1.5rem;margin:30px 0 15px;color:#1a1a2e}
.xycontent-main p{margin-bottom:15px;line-height:1.8;color:#555}
.xycontent-main img{border-radius:8px;margin:20px 0}

/* News List */
.xynews-list{display:grid;grid-template-columns:1fr;gap:25px}
.xynews-list-item{display:flex;flex-direction:column;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 15px rgba(0,0,0,.05);transition:all .3s ease}
.xynews-list-item:hover{box-shadow:0 10px 30px rgba(0,0,0,.1)}

/* Back to Top */
.xyback-top{position:fixed;bottom:30px;right:30px;width:45px;height:45px;background:#e63946;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;visibility:hidden;transition:all .3s ease;z-index:999;box-shadow:0 2px 10px rgba(230,57,70,.3)}
.xyback-top.visible{opacity:1;visibility:visible}
.xyback-top:hover{background:#c1121f;transform:translateY(-3px)}
.xyback-top svg{width:20px;height:20px;fill:#fff}

/* Loading */
.xyloading{position:fixed;top:0;left:0;right:0;bottom:0;background:#1a1a2e;display:flex;align-items:center;justify-content:center;z-index:9999;transition:opacity .5s ease}
.xyloading.hidden{opacity:0;pointer-events:none}
.xyloading-spinner{width:50px;height:50px;border:3px solid rgba(255,255,255,.1);border-top-color:#e63946;border-radius:50%;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* Lazy Load */
.xylazyload{opacity:0;transition:opacity .5s ease}
.xylazyload.loaded{opacity:1}

/* Responsive - Tablet */
@media(min-width:768px){
  .xynav-main{display:block}
  .xynav-list{flex-direction:row}
  .xynav-link{padding:25px 20px;border-bottom:none}
  .xymobile-toggle{display:none}
  .xybanner-title{font-size:3rem}
  .xybanner-subtitle{font-size:1.25rem}
  .xystat-grid{grid-template-columns:repeat(4,1fr)}
  .xyservice-grid{grid-template-columns:repeat(2,1fr)}
  .xysolution-grid{grid-template-columns:repeat(3,1fr)}
  .xycase-grid{grid-template-columns:repeat(2,1fr)}
  .xynews-grid{grid-template-columns:repeat(2,1fr)}
  .xynews-item{flex-direction:row}
  .xynews-thumb{width:200px;height:auto}
  .xyabout-features{grid-template-columns:repeat(3,1fr)}
  .xyfooter-grid{grid-template-columns:repeat(2,1fr)}
  .xypartner-grid{grid-template-columns:repeat(4,1fr)}
  .xynews-list{grid-template-columns:repeat(2,1fr)}
}

/* Responsive - Desktop */
@media(min-width:1024px){
  .xybanner-title{font-size:3.5rem}
  .xyservice-grid{grid-template-columns:repeat(3,1fr)}
  .xysolution-grid{grid-template-columns:repeat(5,1fr)}
  .xycase-grid{grid-template-columns:repeat(3,1fr)}
  .xynews-grid{grid-template-columns:repeat(3,1fr)}
  .xynews-item{flex-direction:column}
  .xynews-thumb{width:100%;height:180px}
  .xyfooter-grid{grid-template-columns:2fr 1fr 1fr 1fr}
  .xypartner-grid{grid-template-columns:repeat(6,1fr)}
}

/* Print Styles */
@media print{
  .xyheader-wrap,.xyfooter-main,.xyback-top{display:none}
  body{font-size:12pt;color:#000}
  a{color:#000;text-decoration:underline}
}

/* Accessibility */
@media(prefers-reduced-motion:reduce){
  *{animation-duration:0.01ms!important;animation-iteration-count:1!important;transition-duration:0.01ms!important}
}

/* Focus Styles */
a:focus,button:focus{outline:2px solid #e63946;outline-offset:2px}

/* Selection */
::selection{background:#e63946;color:#fff}
::-moz-selection{background:#e63946;color:#fff}
