/* 浙江天祥机床有限公司 - 官网样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --blue: #0a4a8a;
  --blue2: #1465b0;
  --steel: #2b3a4a;
  --orange: #e07b00;
  --bg: #f5f7fa;
  --line: #e2e7ee;
}
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  color: #2b3440;
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}
a { color: var(--blue2); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* 顶栏 */
.topbar { background: var(--steel); color: #cfd9e4; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; padding: 6px 20px; flex-wrap: wrap; }
.topbar b { color: #fff; font-weight: 600; }

/* 头部 */
header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; flex-wrap: wrap; gap: 12px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo .mark { width: 46px; height: 46px; background: linear-gradient(135deg, var(--blue), var(--blue2)); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 22px; }
.logo h1 { font-size: 22px; color: var(--blue); letter-spacing: 1px; }
.logo .sub { font-size: 12px; color: #7a8694; }
nav.menu { display: flex; gap: 4px; flex-wrap: wrap; }
nav.menu a { padding: 8px 16px; border-radius: 6px; font-size: 15px; color: #333; font-weight: 500; }
nav.menu a:hover, nav.menu a.active { background: var(--blue); color: #fff; }

/* 主视觉 */
.hero { background: linear-gradient(120deg, #0a3d6e 0%, #0a4a8a 55%, #1465b0 100%); color: #fff; padding: 64px 0 56px; }
.hero h2 { font-size: 34px; letter-spacing: 2px; margin-bottom: 14px; }
.hero p { font-size: 17px; color: #d7e4f2; max-width: 760px; }
.hero .tags { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .tag { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); padding: 6px 16px; border-radius: 20px; font-size: 14px; }

/* 区块 */
section { padding: 52px 0; }
section.alt { background: #fff; }
.sec-title { text-align: center; margin-bottom: 34px; }
.sec-title h2 { font-size: 28px; color: var(--blue); letter-spacing: 2px; }
.sec-title .en { color: #97a5b4; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; }
.sec-title .line { width: 56px; height: 3px; background: var(--orange); margin: 14px auto 0; border-radius: 2px; }

/* 公司简介 */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.about-grid .txt p { margin-bottom: 12px; text-align: justify; }
.about-grid .txt .hi { font-size: 18px; font-weight: 600; color: var(--blue); }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.point { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); padding: 16px; border-radius: 6px; }
.point b { color: var(--blue); display: block; margin-bottom: 4px; }

/* 产品卡片 */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: .2s; display: flex; flex-direction: column; }
.card:hover { box-shadow: 0 8px 24px rgba(10,60,110,.12); transform: translateY(-3px); }
.card .head { background: linear-gradient(135deg, var(--blue), var(--blue2)); color: #fff; padding: 18px 20px; }
.card .head h3 { font-size: 20px; }
.card .head .model { font-size: 13px; opacity: .9; margin-top: 4px; letter-spacing: 1px; }
.card .body { padding: 18px 20px; flex: 1; }
.card .body ul { list-style: none; }
.card .body li { padding: 5px 0 5px 22px; position: relative; font-size: 15px; }
.card .body li::before { content: "✔"; position: absolute; left: 0; color: var(--orange); font-size: 14px; }
.card .body .acc { color: #c0392b; font-weight: 600; margin-top: 8px; }

/* 参数表 */
table.param { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
table.param th, table.param td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
table.param th { background: var(--blue); color: #fff; font-weight: 600; white-space: nowrap; }
table.param tr:nth-child(even) td { background: #f7f9fc; }
table.param .k { background: #eef3f9; font-weight: 600; width: 180px; }

/* 优势 */
.adv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.adv { background: #fff; border: 1px solid var(--line); padding: 24px; border-radius: 8px; text-align: center; }
.adv .num { font-size: 34px; font-weight: 700; color: var(--blue); }
.adv .num span { font-size: 16px; }
.adv p { color: #56616c; margin-top: 6px; font-size: 15px; }

/* 页脚 */
footer { background: var(--steel); color: #b8c3d0; padding: 40px 0 24px; margin-top: 20px; }
footer .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
footer h4 { color: #fff; margin-bottom: 12px; font-size: 16px; }
footer p { font-size: 14px; line-height: 2; }
footer .copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; text-align: center; font-size: 13px; }
footer .copy a { color: #9fb4c8; }

/* 联系页 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.info-box { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 26px; }
.info-box h3 { color: var(--blue); margin-bottom: 16px; }
.info-box .row { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.info-box .row:last-child { border-bottom: none; }
.info-box .row b { color: #333; min-width: 88px; }
.bread { background: #eef3f9; padding: 14px 0; font-size: 14px; color: #667; }
.bread a { color: var(--blue2); }

.cta { text-align: center; margin-top: 30px; }
.btn { display: inline-block; background: var(--orange); color: #fff; padding: 12px 30px; border-radius: 6px; font-size: 16px; font-weight: 600; letter-spacing: 1px; }
.btn:hover { background: #c96d00; }

@media (max-width: 760px) {
  .hero h2 { font-size: 26px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .points { grid-template-columns: 1fr; }
  .logo h1 { font-size: 18px; }
}
