/* ============================================
   丝鹿传媒 MetInfo 模板 - 主样式表
   基于米拓 m1156ui018 风格，扁平简洁
   ============================================ */

/* ---- Reset & Base ---- */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Inter",system-ui,-apple-system,sans-serif;color:#333;background:#fff;line-height:1.7;-webkit-font-smoothing:antialiased}

/* ---- TOP BAR ---- */
.topbar{background:#E31E24;color:#fff;font-size:13px;padding:8px 0}
.topbar .wrap{max-width:1200px;margin:0 auto;padding:0 30px;display:flex;justify-content:space-between;align-items:center}
.topbar a{color:#fff;text-decoration:none;opacity:.85;transition:opacity .2s}
.topbar a:hover{opacity:1}

/* ---- HEADER ---- */
header{background:#fff;border-bottom:1px solid #eee;position:sticky;top:0;z-index:100}
header .wrap{max-width:1200px;margin:0 auto;padding:0 30px;display:flex;align-items:center;justify-content:space-between;height:64px}
header .logo{display:flex;align-items:center;gap:10px;text-decoration:none}
header .logo-img{height:38px;width:auto}
header .logo-text{font-size:20px;font-weight:600;color:#333}
header nav{display:flex;gap:32px}
header nav a{font-size:14px;color:#666;text-decoration:none;font-weight:500;transition:color .2s;padding:8px 0;border-bottom:2px solid transparent}
header nav a:hover,header nav a.active{color:#E31E24;border-bottom-color:#E31E24}
header .hamburger{display:none;font-size:22px;background:none;border:none;cursor:pointer;color:#333}

/* ---- COMMON SECTIONS ---- */
.section{padding:80px 30px}
.section.gray{background:#f9f9fb}
.section .wrap{max-width:1200px;margin:0 auto}
.section .st{display:inline-block;font-size:13px;font-weight:600;color:#E31E24;letter-spacing:2px;margin-bottom:12px}
.section .sh{font-size:34px;font-weight:700;color:#222;margin-bottom:12px;line-height:1.3}
.section .sd{font-size:15px;color:#999;margin-bottom:48px;max-width:680px;line-height:1.9}
.section .sd.center{margin-left:auto;margin-right:auto;text-align:center}

/* ---- INNER PAGE COMMON ---- */
.inner-banner{background:#f9f9fb;padding:60px 30px;text-align:center}
.inner-banner .wrap{max-width:1200px;margin:0 auto}
.inner-banner h1{font-size:34px;font-weight:700;color:#222;margin-bottom:8px}
.inner-banner .sub{font-size:14px;color:#999}

.inner-content{padding:60px 30px}
.inner-content .wrap{max-width:900px;margin:0 auto}
.inner-content .met-editor{font-size:15px;color:#555;line-height:2}

/* ---- BREADCRUMB ---- */
.breadcrumb{background:#f9f9fb;padding:16px 30px;border-top:1px solid #eee}
.breadcrumb .wrap{max-width:1200px;margin:0 auto;font-size:13px;color:#aaa}
.breadcrumb a{color:#999;text-decoration:none}
.breadcrumb a:hover{color:#E31E24}
.breadcrumb span{color:#bbb}

/* ---- HOME: BANNER ---- */
.banner{background:#f9f9fb;padding:80px 30px}
.banner .wrap{max-width:1200px;margin:0 auto}
.banner .rb{display:flex;align-items:center;gap:50px;flex-wrap:wrap}
.banner .rb-text{flex:1;min-width:300px}
.banner .rb-text h1{font-size:42px;font-weight:700;color:#222;line-height:1.25;margin-bottom:18px}
.banner .rb-text h1 span{color:#E31E24}
.banner .rb-text p{font-size:16px;color:#777;line-height:1.9;margin-bottom:28px}
.banner .rb-text .btn{display:inline-block;padding:13px 36px;background:#E31E24;color:#fff;font-size:15px;font-weight:600;border-radius:5px;text-decoration:none;transition:background .2s}
.banner .rb-text .btn:hover{background:#c41a20}
.banner .rb-nums{flex:1;min-width:300px;display:grid;grid-template-columns:1fr 1fr;gap:15px}
.banner .rb-nums .nm{padding:24px;background:#fff;border:1px solid #eee;border-radius:5px;transition:border-color .2s}
.banner .rb-nums .nm:hover{border-color:#E31E24}
.banner .rb-nums .nm .n{font-size:32px;font-weight:700;color:#E31E24;line-height:1.1;margin-bottom:4px}
.banner .rb-nums .nm .l{font-size:13px;color:#999}

/* ---- HOME: ABOUT ---- */
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:start}
.about-grid .at{font-size:15px;color:#666;line-height:2}
.about-grid .at p{margin-bottom:16px}
.about-stats{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.about-stats .as{padding:28px 24px;background:#fff;border:1px solid #eee;border-radius:5px;text-align:center;transition:border-color .2s}
.about-stats .as:hover{border-color:#E31E24}
.about-stats .as .as-icon{font-size:26px;margin-bottom:8px}
.about-stats .as .as-num{font-size:28px;font-weight:700;color:#222;line-height:1.2;margin-bottom:4px}
.about-stats .as .as-num.ac{color:#E31E24}
.about-stats .as .as-lbl{font-size:12px;color:#aaa}

/* ---- HOME: SERVICES ---- */
.svc-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.svc-card{padding:36px 28px;background:#fff;border:1px solid #eee;border-radius:5px;transition:all .2s}
.svc-card:hover{border-color:#E31E24;transform:translateY(-2px)}
.svc-card .svc-icon{width:50px;height:50px;border-radius:5px;display:flex;align-items:center;justify-content:center;margin-bottom:18px;font-size:22px}
.svc-card:nth-child(1) .svc-icon{background:#fff0f0;color:#E31E24}
.svc-card:nth-child(2) .svc-icon{background:#f0f4ff;color:#325AB4}
.svc-card:nth-child(3) .svc-icon{background:#fff8f0;color:#FF9800}
.svc-card:nth-child(4) .svc-icon{background:#f0faf0;color:#4CAF50}
.svc-card h3{font-size:17px;font-weight:600;color:#333;margin-bottom:10px}
.svc-card p{font-size:13px;color:#999;line-height:1.8}

/* ---- HOME: CLIENTS ---- */
.clients{padding:40px 30px;border-top:1px solid #eee;border-bottom:1px solid #eee}
.clients .wrap{max-width:1200px;margin:0 auto;display:flex;align-items:center;justify-content:center;gap:40px;flex-wrap:wrap}
.clients .cl{font-size:13px;font-weight:600;color:#bbb;letter-spacing:2px}
.clients .ci{font-size:15px;font-weight:600;color:#bbb;transition:color .2s;cursor:default}
.clients .ci:hover{color:#666}

/* ---- CASES (产品列表) ---- */
.cases-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.case-c{border:1px solid #eee;border-radius:5px;overflow:hidden;background:#fff;transition:all .2s;display:flex;flex-direction:column}
.case-c:hover{border-color:#E31E24;transform:translateY(-2px)}
.case-c .c-thumb{height:140px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;background:#f5f5f7}
.case-c .c-thumb img{width:100%;height:100%;object-fit:cover}
.case-c .c-body{padding:22px 20px 26px;flex:1}
.case-c .c-tag{display:inline-block;font-size:11px;font-weight:600;color:#E31E24;background:#fff0f0;padding:2px 10px;border-radius:3px;margin-bottom:10px}
.case-c h4{font-size:17px;font-weight:600;color:#333;margin-bottom:8px}
.case-c h4 a{color:#333;text-decoration:none}
.case-c h4 a:hover{color:#E31E24}
.case-c .c-data{font-size:26px;font-weight:700;color:#E31E24;margin-bottom:4px}
.case-c .c-desc{font-size:13px;color:#999;line-height:1.7}

/* ---- CASE DETAIL ---- */
.case-detail{padding:60px 30px}
.case-detail .wrap{max-width:900px;margin:0 auto}
.case-detail h1{font-size:32px;font-weight:700;color:#222;margin-bottom:16px}
.case-detail .meta{font-size:13px;color:#aaa;margin-bottom:30px;padding-bottom:20px;border-bottom:1px solid #eee}
.case-detail .meta span{margin-right:20px}
.case-detail .cover{width:100%;border-radius:5px;margin-bottom:30px}
.case-detail .met-editor{font-size:15px;color:#555;line-height:2}

/* ---- VALUES ---- */
.val-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.val-card{padding:36px 28px;background:#fff;border:1px solid #eee;border-radius:5px;transition:all .2s}
.val-card:hover{border-color:#E31E24}
.val-card .val-num{font-size:36px;font-weight:700;color:#f0f0f0;line-height:1;margin-bottom:12px}
.val-card h3{font-size:18px;font-weight:600;color:#333;margin-bottom:10px}
.val-card p{font-size:14px;color:#999;line-height:1.8}

/* ---- CONTACT / FEEDBACK ---- */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:start}
.contact-info .ci-block{margin-bottom:24px}
.contact-info .ci-block h3{font-size:15px;font-weight:600;color:#333;margin-bottom:6px;display:flex;align-items:center;gap:8px}
.contact-info .ci-block h3 .dot{display:inline-block;width:6px;height:6px;background:#E31E24;border-radius:50%}
.contact-info .ci-block p{font-size:14px;color:#999;line-height:1.9}

.cform{background:#fff;border:1px solid #eee;border-radius:5px;padding:40px 36px}
.cform h3{font-size:18px;font-weight:600;color:#333;margin-bottom:20px}
.cform .form-group{margin-bottom:16px}
.cform .form-group label{display:block;font-size:13px;color:#999;margin-bottom:5px}
.cform .form-group input,.cform .form-group textarea,.cform .form-group select{width:100%;padding:12px 14px;border:1px solid #e0e0e0;border-radius:4px;font-size:14px;color:#333;font-family:inherit;outline:none;transition:border-color .2s;resize:vertical}
.cform .form-group textarea{min-height:110px}
.cform .form-group input:focus,.cform .form-group textarea:focus,.cform .form-group select:focus{border-color:#E31E24}
.cform .form-group input::placeholder,.cform .form-group textarea::placeholder{color:#ccc}
.cform .submit{width:100%;padding:14px 0;background:#E31E24;color:#fff;border:none;border-radius:4px;font-size:15px;font-weight:600;cursor:pointer;transition:background .2s}
.cform .submit:hover{background:#c41a20}

/* ---- LIST PAGES ---- */
.list-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.list-grid .lg-item{border:1px solid #eee;border-radius:5px;overflow:hidden;background:#fff;transition:all .2s}
.list-grid .lg-item:hover{border-color:#E31E24;transform:translateY(-2px)}
.list-grid .lg-item .lg-thumb{height:180px;overflow:hidden;background:#f5f5f7;display:flex;align-items:center;justify-content:center}
.list-grid .lg-item .lg-thumb img{width:100%;height:100%;object-fit:cover}
.list-grid .lg-item .lg-info{padding:20px}
.list-grid .lg-item .lg-info h4{font-size:16px;font-weight:600;color:#333;margin-bottom:8px}
.list-grid .lg-item .lg-info h4 a{color:#333;text-decoration:none}
.list-grid .lg-item .lg-info h4 a:hover{color:#E31E24}
.list-grid .lg-item .lg-info p{font-size:13px;color:#999;line-height:1.7}
.list-grid .lg-item .lg-info .lg-meta{font-size:12px;color:#bbb;margin-top:10px}

/* ---- PAGINATION ---- */
.pager{margin-top:48px;display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.pager a,.pager span{display:inline-block;padding:8px 16px;border:1px solid #eee;border-radius:4px;font-size:14px;color:#666;text-decoration:none;transition:all .2s}
.pager a:hover{background:#E31E24;color:#fff;border-color:#E31E24}
.pager .active{background:#E31E24;color:#fff;border-color:#E31E24}
.pager .disabled{color:#ccc;pointer-events:none}

/* ---- 404 ---- */
.error-404{text-align:center;padding:120px 30px}
.error-404 .code{font-size:80px;font-weight:700;color:#f0f0f0;line-height:1}
.error-404 h2{font-size:24px;font-weight:600;color:#333;margin:16px 0}
.error-404 p{font-size:15px;color:#999;margin-bottom:32px}
.error-404 .btn{display:inline-block;padding:13px 36px;background:#E31E24;color:#fff;font-size:15px;font-weight:600;border-radius:5px;text-decoration:none;transition:background .2s}
.error-404 .btn:hover{background:#c41a20}

/* ---- SEARCH ---- */
.search-form{padding:40px 30px;background:#f9f9fb;text-align:center}
.search-form .search-box{display:flex;max-width:500px;margin:0 auto}
.search-form .search-box input{flex:1;padding:12px 16px;border:1px solid #e0e0e0;border-right:0;border-radius:5px 0 0 5px;font-size:14px;outline:none}
.search-form .search-box input:focus{border-color:#E31E24}
.search-form .search-box button{padding:12px 28px;background:#E31E24;color:#fff;border:none;border-radius:0 5px 5px 0;font-size:14px;font-weight:600;cursor:pointer}

/* ---- FOOTER ---- */
footer{background:#222;padding:50px 30px 30px;color:#999}
footer .wrap{max-width:1200px;margin:0 auto}
footer .f-top{display:flex;justify-content:space-between;flex-wrap:wrap;gap:40px;margin-bottom:40px}
footer .f-brand{display:flex;align-items:center;gap:10px}
footer .f-brand .f-logo{height:36px;width:auto}
footer .f-brand .f-name{font-size:18px;font-weight:600;color:#fff}
footer .f-links{display:flex;gap:50px;flex-wrap:wrap}
footer .f-col h4{font-size:14px;font-weight:600;color:#ddd;margin-bottom:12px}
footer .f-col a{display:block;font-size:13px;color:#999;text-decoration:none;margin-bottom:8px;transition:color .2s}
footer .f-col a:hover{color:#fff}
footer .f-bottom{border-top:1px solid #333;padding-top:20px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:12px;color:#666}
footer .f-bottom a{color:#666;text-decoration:none}
footer .f-bottom a:hover{color:#aaa}
footer .f-copy{flex-direction:column;align-items:center;border-top:none;padding-top:12px}
footer .powered_by_metinfo{font-size:11px;color:#999;margin-top:8px;text-align:center}
footer .powered_by_metinfo a{color:#bbb;text-decoration:none}
footer .powered_by_metinfo a:hover{color:#999}
/* ---- RESPONSIVE ---- */
@media(max-width:1000px){
  .banner .rb{gap:40px}
  .banner .rb-text h1{font-size:32px}
  .about-grid{grid-template-columns:1fr;gap:40px}
  .svc-grid{grid-template-columns:1fr 1fr}
  .cases-grid{grid-template-columns:repeat(2,1fr)}
  .list-grid{grid-template-columns:repeat(2,1fr)}
  .val-grid{grid-template-columns:1fr 1fr}
  .contact-grid{grid-template-columns:1fr}
}
@media(max-width:768px){
  header nav{display:none;flex-direction:column;position:absolute;top:64px;left:0;right:0;background:#fff;border-bottom:1px solid #eee;padding:16px 30px;gap:0}
  header nav a{padding:12px 0}
  header .hamburger{display:block}
  .banner{padding:50px 20px}
  .banner .rb-text h1{font-size:26px}
  .banner .rb-nums{grid-template-columns:1fr}
  .section{padding:50px 20px}
  .section .sh{font-size:26px}
  .svc-grid{grid-template-columns:1fr}
  .cases-grid{grid-template-columns:1fr}
  .list-grid{grid-template-columns:1fr}
  .val-grid{grid-template-columns:1fr}
  .clients .wrap{gap:20px;justify-content:flex-start}
  .cform{padding:28px 20px}
  footer .f-top{flex-direction:column}
}
