:root {
  --bg: #111;
  --bg-deep: #000;
  --bg-soft: #1a1a1a;
  --gold: #e8a317;
  --gold-dark: #c4890f;
  --text: #fff;
  --muted: #9a9a9a;
  --line: #2a2a2a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg-deep); color: var(--text); font-family: Arial, Helvetica, sans-serif; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

/* Header */
.header { background: #000; padding: 16px 0 8px; position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: center; position: relative; }
.logo { display: block; line-height: 0; }
.logo img { height: 72px; width: auto; border-radius: 4px; }
.menu-btn { display: none; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 36px; height: 28px; background: none; border: 0; cursor: pointer; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; width: 22px; height: 2px; background: #fff; }
.menu-btn i { position: relative; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; right: 0; }
.menu-btn i::before { top: -9px; }
.menu-btn i::after { top: 9px; }

.nav { background: #000; border-top: 1px solid #161616; }
.nav ul { display: flex; justify-content: center; }
.nav li { flex: 1; max-width: 180px; text-align: center; position: relative; }
.nav a { display: block; padding: 16px 8px; font-size: 15px; letter-spacing: .5px; }
.nav a:hover, .nav .on > a { color: var(--gold); }
.nav .sub { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #151515; z-index: 30; }
.nav li:hover .sub { display: block; }
.nav .sub a { padding: 10px 8px; font-size: 13px; border-top: 1px solid #222; }

/* Banner */
.banner { position: relative; overflow: hidden; background: #000; }
.slides { display: flex; transition: transform .6s ease; }
.slide { min-width: 100%; height: 520px; background: #111; position: relative; overflow: hidden; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.5)); }
.slide-copy { position: absolute; left: 8%; bottom: 18%; z-index: 2; max-width: 640px; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.slide-copy h2 { font-size: 42px; letter-spacing: 2px; }
.slide-copy p { color: #ddd; margin-top: 8px; }
.dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #666; cursor: pointer; }
.dots .on { background: #fff; }
.inner-banner { height: 280px; background: #111 center/cover no-repeat; }

/* Home sections */
.sec { padding: 70px 0; background: #111; }
.sec-head { text-align: center; margin-bottom: 36px; position: relative; }
.sec-head .bar { width: 36px; height: 3px; background: var(--gold); margin: 0 auto 18px; }
.sec-head h3 { font-size: 42px; font-weight: 400; letter-spacing: 4px; }
.sec-head h4 { font-size: 22px; font-weight: 400; margin-top: 4px; }
.more { position: absolute; right: 0; top: 18px; width: 36px; height: 36px; border: 1px solid #444; display: grid; place-items: center; }
.more:hover { border-color: var(--gold); color: var(--gold); }

.pro-grid, .news-grid, .card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pro-card { background: #fff; color: #111; overflow: hidden; }
.pro-card .pic { height: 260px; background: #dedede center/cover no-repeat; }
.pro-card p { background: var(--gold); color: #111; text-align: center; padding: 10px 8px; font-size: 14px; }
.pro-card:hover p { background: var(--gold-dark); }

.about-home { background: #0d0d0d; }
.about-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; }
.about-pic { min-height: 280px; background: #222 center/cover no-repeat; }
.about-text p { color: #cfcfcf; margin-bottom: 16px; }
.about-text .more { position: static; margin-top: 10px; }

.news-card { background: #161616; }
.news-card .pic { height: 180px; background: #222 center/cover no-repeat; position: relative; }
.news-card .date { position: absolute; left: 0; top: 0; background: rgba(0,0,0,.7); padding: 6px 10px; font-size: 12px; }
.news-card h5 { padding: 14px 14px 6px; font-size: 16px; font-weight: 500; }
.news-card p { padding: 0 14px 16px; color: var(--muted); font-size: 13px; }

/* Inner layout */
.inside { background: #111; padding: 36px 0 70px; }
.page-title { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid #2a2a2a; padding-bottom: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.page-title h2 { font-size: 28px; font-weight: 400; letter-spacing: 2px; }
.page-title .cn { color: #aaa; }
.crumb { margin-left: auto; color: #888; font-size: 13px; }
.crumb a:hover { color: var(--gold); }
.layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.sidemenu a { display: block; background: var(--gold); color: #111; padding: 14px 16px; margin-bottom: 8px; font-weight: 600; }
.sidemenu a:hover, .sidemenu .on { background: var(--gold-dark); }
.article { min-width: 0; }
.rich { color: #d8d8d8; }
.rich p { margin-bottom: 16px; }
.rich h3 { color: #fff; font-size: 20px; margin: 24px 0 10px; font-weight: 500; }
.detail-title { text-align: center; margin-bottom: 22px; }
.detail-title h1 { font-size: 26px; font-weight: 500; }
.detail-title p { color: #888; font-size: 13px; margin-top: 8px; }
.detail-pic { max-width: 640px; margin: 0 auto 24px; background: #eee; padding: 8px; }
.detail-pic img { width: 100%; }
.pager { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #2a2a2a; padding-top: 16px; margin-top: 28px; color: #aaa; font-size: 13px; }
.pager a:hover { color: var(--gold); }

.news-list li { border-bottom: 1px solid #2a2a2a; padding: 18px 0; }
.news-list a { display: block; }
.news-list h4 { font-size: 18px; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
.news-list .time { color: #888; font-size: 13px; white-space: nowrap; }
.news-list p { color: #999; font-size: 13px; margin-top: 8px; }
.news-list a:hover h4 { color: var(--gold); }

.feature { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.feature li { background: #181818; padding: 22px; border-top: 3px solid var(--gold); }
.feature h4 { margin-bottom: 8px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-card { background: #181818; padding: 22px; margin-bottom: 12px; }
.contact-card b { color: var(--gold); display: block; margin-bottom: 4px; }
.form label { display: block; margin: 12px 0 6px; color: #ccc; }
.form input, .form textarea { width: 100%; background: #0d0d0d; border: 1px solid #333; color: #fff; padding: 10px 12px; }
.form textarea { min-height: 120px; resize: vertical; }
.btn { display: inline-block; background: var(--gold); color: #111; border: 0; padding: 10px 28px; cursor: pointer; font-weight: 700; margin-top: 14px; }
.btn:hover { background: var(--gold-dark); }
.form-msg { margin-top: 12px; color: var(--gold); display: none; }

.links { background: #0a0a0a; padding: 22px 0; color: #888; font-size: 13px; }
.links a { margin-right: 16px; }
.links a:hover { color: var(--gold); }
.copy { background: #000; text-align: center; color: #777; font-size: 12px; padding: 16px 12px 28px; }

/* Side toolbar */
.aside { position: fixed; right: 12px; top: 42%; z-index: 40; display: flex; flex-direction: column; gap: 8px; }
.aside a, .aside button { width: 46px; height: 46px; background: #1b1b1b; color: #fff; border: 1px solid #333; display: grid; place-items: center; cursor: pointer; }
.aside svg { width: 22px; height: 22px; fill: currentColor; display: block; }
.aside a:hover, .aside button:hover { background: var(--gold); color: #111; border-color: var(--gold); }
.tip { position: relative; }
.tip .pop { display: none; position: absolute; right: 54px; top: 50%; transform: translateY(-50%); background: #111; color: #fff; padding: 10px 14px; white-space: nowrap; border: 1px solid #444; font-size: 13px; line-height: 1.2; }
.tip:hover .pop { display: block; }

/* Mobile menu + footer */
.mask { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 50; }
.drawer { display: none; position: fixed; left: 0; top: 0; bottom: 0; width: min(78%, 320px); background: #111; z-index: 60; padding: 18px 0; overflow: auto; }
.drawer .close { background: none; border: 0; color: #fff; font-size: 24px; padding: 0 18px 10px; }
.drawer h6 { padding: 8px 18px; color: var(--gold); }
.drawer a { display: block; padding: 12px 18px; border-top: 1px solid #222; }
.m-foot { display: none; position: fixed; left: 0; right: 0; bottom: 0; background: #111; border-top: 1px solid #2a2a2a; z-index: 45; grid-template-columns: repeat(4, 1fr); }
.m-foot a, .m-foot button { background: none; border: 0; color: #ddd; padding: 10px 0 8px; display: grid; place-items: center; }
.m-foot svg { width: 22px; height: 22px; fill: currentColor; }
.search-box { display: none; position: fixed; left: 12px; right: 12px; bottom: 70px; background: #1a1a1a; border: 1px solid #333; padding: 10px; z-index: 46; }
.search-box.on { display: flex; gap: 8px; }
.search-box input { flex: 1; background: #000; border: 1px solid #333; color: #fff; padding: 8px; }
.search-box button { background: var(--gold); border: 0; padding: 0 14px; }

@media (max-width: 900px) {
  .nav, .aside { display: none; }
  .menu-btn { display: block; }
  .logo img { height: 40px; }
  .slide { height: 280px; }
  .slide-copy h2 { font-size: 24px; }
  .inner-banner { height: 160px; }
  .sec { padding: 46px 0; }
  .sec-head h3 { font-size: 28px; }
  .more { display: none; }
  .pro-grid, .news-grid, .card-grid, .feature, .about-wrap, .layout, .contact-grid { grid-template-columns: 1fr; }
  .pro-grid, .news-grid, .card-grid { grid-template-columns: 1fr 1fr; }
  .m-foot { display: grid; }
  .copy { padding-bottom: 78px; }
  .news-list h4 { flex-direction: column; }
}

@media (max-width: 560px) {
  .pro-grid, .news-grid, .card-grid { grid-template-columns: 1fr; }
  .page-title { display: block; }
  .crumb { margin: 8px 0 0; }
}
