/* ===== 方铸工贸 企业网站全局样式 ===== */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { font-family:'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif; color:#2c2c2c; line-height:1.6; background:#fff; }
a { text-decoration:none; color:inherit; }
ul { list-style:none; }
img { max-width:100%; display:block; }

/* Header */
.header { position:fixed; top:0; width:100%; z-index:1000; background:rgba(28,28,28,0.98); box-shadow:0 2px 20px rgba(0,0,0,0.2); transition:all 0.3s; }
.header .container { max-width:1200px; margin:0 auto; padding:0 20px; display:flex; align-items:center; justify-content:space-between; height:72px; }
.logo { font-size:24px; font-weight:700; color:#e8a850; letter-spacing:1px; display:flex; align-items:center; gap:8px; }
.logo .cn { font-size:14px; color:#aaa; font-weight:400; border-left:1px solid #555; padding-left:12px; }
.nav { display:flex; gap:32px; }
.nav a { font-size:15px; font-weight:500; color:#bbb; padding:8px 0; position:relative; transition:color 0.3s; }
.nav a::after { content:''; position:absolute; bottom:0; left:0; width:0; height:2px; background:#e8a850; transition:width 0.3s; }
.nav a:hover,.nav a.active { color:#e8a850; }
.nav a:hover::after,.nav a.active::after { width:100%; }
.menu-toggle { display:none; font-size:26px; cursor:pointer; color:#e8a850; }

/* Language Switcher */
.lang-switch { display:flex; gap:6px; margin-left:16px; }
.lang-switch a { font-size:12px; font-weight:600; color:#888; padding:4px 10px; border:1px solid #555; border-radius:3px; transition:all 0.3s; text-transform:uppercase; }
.lang-switch a:hover,.lang-switch a.active { color:#e8a850; border-color:#e8a850; background:rgba(232,168,80,0.1); }

/* Hero */
.hero { height:100vh; display:flex; align-items:center; justify-content:center; text-align:center; background:linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%231c1c1c"/><circle cx="900" cy="200" r="350" fill="%232a2a2a"/><circle cx="300" cy="600" r="250" fill="%23252525"/><line x1="0" y1="400" x2="1200" y2="400" stroke="%23333" stroke-width="1"/><line x1="600" y1="0" x2="600" y2="800" stroke="%23333" stroke-width="1"/></svg>'); background-size:cover; background-position:center; color:#fff; position:relative; overflow:hidden; }
.hero::before { content:''; position:absolute; width:500px; height:3px; background:linear-gradient(90deg, transparent, #e8a850, transparent); bottom:100px; left:50%; transform:translateX(-50%); }
.hero-content { position:relative; z-index:1; max-width:800px; padding:0 20px; }
.hero h1 { font-size:52px; font-weight:800; margin-bottom:16px; letter-spacing:3px; }
.hero h1 span { color:#e8a850; }
.hero p { font-size:20px; opacity:0.85; margin-bottom:36px; line-height:1.8; }
.hero-btns { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }
.btn { display:inline-block; padding:14px 36px; border-radius:4px; font-size:16px; font-weight:600; cursor:pointer; transition:all 0.3s; border:2px solid transparent; text-transform:uppercase; letter-spacing:1px; }
.btn-primary { background:#e8a850; color:#1c1c1c; }
.btn-primary:hover { background:#d4943a; transform:translateY(-2px); box-shadow:0 8px 25px rgba(232,168,80,0.4); }
.btn-outline { border-color:#e8a850; color:#e8a850; }
.btn-outline:hover { background:#e8a850; color:#1c1c1c; }

/* Sections */
.section { padding:100px 0; }
.section-dark { background:#f5f3ef; }
.container { max-width:1200px; margin:0 auto; padding:0 20px; }
.section-title { text-align:center; margin-bottom:60px; }
.section-title h2 { font-size:36px; color:#1c1c1c; margin-bottom:12px; font-weight:700; position:relative; display:inline-block; }
.section-title h2::after { content:''; position:absolute; bottom:-8px; left:50%; transform:translateX(-50%); width:50px; height:3px; background:#e8a850; }
.section-title .divider { width:60px; height:3px; background:#e8a850; margin:16px auto; }
.section-title p { color:#888; font-size:16px; max-width:600px; margin:0 auto; }

/* Page Banner */
.page-banner { padding:160px 0 70px; background:linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 300"><rect fill="%231c1c1c"/><line x1="0" y1="150" x2="1200" y2="150" stroke="%23333" stroke-width="2"/></svg>'); background-size:cover; color:#fff; text-align:center; }
.page-banner h1 { font-size:42px; margin-bottom:12px; }
.page-banner .breadcrumb { font-size:14px; opacity:0.7; }
.page-banner .breadcrumb a { color:#e8a850; }
.page-banner .breadcrumb a:hover { opacity:1; }

/* Features Grid */
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:30px; }
.card { background:#fff; border-radius:4px; padding:36px 24px; box-shadow:0 5px 30px rgba(0,0,0,0.06); transition:all 0.3s; text-align:center; border-top:3px solid transparent; }
.card:hover { transform:translateY(-8px); box-shadow:0 15px 40px rgba(0,0,0,0.1); border-top-color:#e8a850; }
.card-icon { width:70px; height:70px; line-height:70px; border-radius:50%; margin:0 auto 20px; font-size:30px; background:rgba(232,168,80,0.1); color:#e8a850; }
.card h3 { font-size:20px; margin-bottom:12px; color:#1c1c1c; }
.card p { color:#777; font-size:14px; line-height:1.7; }

/* Products */
.product-card { background:#fff; border-radius:4px; overflow:hidden; box-shadow:0 5px 30px rgba(0,0,0,0.06); transition:all 0.3s; }
.product-card:hover { transform:translateY(-8px); box-shadow:0 15px 40px rgba(0,0,0,0.1); }
.product-card .img-placeholder { height:220px; background:linear-gradient(135deg, #1c1c1c, #3a3a3a); display:flex; align-items:center; justify-content:center; color:#e8a850; font-size:48px; }
.product-card .info { padding:24px; }
.product-card .info h3 { font-size:20px; margin-bottom:8px; color:#1c1c1c; }
.product-card .info p { color:#888; font-size:14px; line-height:1.6; }

/* News */
.news-card { background:#fff; border-radius:4px; overflow:hidden; box-shadow:0 5px 30px rgba(0,0,0,0.06); transition:all 0.3s; display:flex; gap:0; }
.news-card:hover { transform:translateY(-5px); box-shadow:0 15px 40px rgba(0,0,0,0.1); }
.news-card .date-box { min-width:90px; background:#1c1c1c; color:#e8a850; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:20px; font-weight:700; }
.news-card .date-box .day { font-size:32px; }
.news-card .date-box .month { font-size:13px; opacity:0.8; }
.news-card .info { padding:24px; flex:1; }
.news-card .info h3 { font-size:18px; margin-bottom:8px; color:#1c1c1c; }
.news-card .info p { color:#888; font-size:14px; line-height:1.6; }
.news-card .info .read-more { display:inline-block; margin-top:12px; color:#e8a850; font-weight:600; font-size:14px; }

/* Contact */
.contact-info { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-bottom:50px; }
.contact-item { text-align:center; padding:30px; background:#fff; border-radius:4px; box-shadow:0 5px 30px rgba(0,0,0,0.06); border-bottom:3px solid transparent; transition:all 0.3s; }
.contact-item:hover { border-bottom-color:#e8a850; }
.contact-item .icon { font-size:36px; margin-bottom:12px; }
.contact-item h4 { color:#1c1c1c; margin-bottom:6px; }
.contact-item p { color:#888; font-size:14px; }
.contact-form { max-width:700px; margin:0 auto; background:#fff; padding:40px; border-radius:4px; box-shadow:0 5px 30px rgba(0,0,0,0.06); }
.form-group { margin-bottom:20px; }
.form-group label { display:block; margin-bottom:6px; font-weight:600; color:#1c1c1c; }
.form-group input,.form-group textarea { width:100%; padding:12px 16px; border:1px solid #ddd; border-radius:4px; font-size:15px; transition:border 0.3s; font-family:inherit; }
.form-group input:focus,.form-group textarea:focus { outline:none; border-color:#e8a850; }
.form-group textarea { min-height:140px; resize:vertical; }

/* Stats */
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:30px; }
.stat-item { text-align:center; padding:30px; }
.stat-item .num { font-size:48px; font-weight:800; color:#e8a850; }
.stat-item .label { color:#666; margin-top:8px; font-size:15px; }

/* Timeline for About */
.timeline { position:relative; padding:20px 0; }
.timeline::before { content:''; position:absolute; left:50%; top:0; bottom:0; width:2px; background:#ddd; transform:translateX(-50%); }
.timeline-item { display:flex; margin-bottom:40px; position:relative; }
.timeline-item:nth-child(even) { flex-direction:row-reverse; }
.timeline-item .year { min-width:120px; text-align:center; font-size:22px; font-weight:700; color:#e8a850; padding-top:20px; }
.timeline-item .dot { width:16px; height:16px; border-radius:50%; background:#e8a850; position:absolute; left:50%; top:28px; transform:translateX(-50%); z-index:1; }
.timeline-item .content { flex:1; max-width:45%; padding:20px; background:#fff; border-radius:4px; box-shadow:0 5px 20px rgba(0,0,0,0.06); border-left:3px solid #e8a850; }
.timeline-item:nth-child(even) .content { border-left:none; border-right:3px solid #e8a850; }
.timeline-item .content h4 { color:#1c1c1c; margin-bottom:8px; }
.timeline-item .content p { color:#888; font-size:14px; }

/* Footer */
.footer { background:#1c1c1c; color:#bbb; padding:60px 0 30px; }
.footer .container { display:grid; grid-template-columns:2fr 1fr 1fr 1.5fr; gap:40px; }
.footer h4 { font-size:18px; color:#e8a850; margin-bottom:20px; position:relative; padding-bottom:10px; }
.footer h4::after { content:''; position:absolute; bottom:0; left:0; width:30px; height:2px; background:#e8a850; }
.footer p,.footer li { font-size:14px; opacity:0.8; line-height:2; }
.footer a:hover { color:#e8a850; }
.footer-bottom { text-align:center; padding-top:30px; margin-top:30px; border-top:1px solid rgba(255,255,255,0.08); font-size:13px; opacity:0.5; }

/* Responsive */
@media (max-width:992px) {
  .grid-3,.grid-4 { grid-template-columns:repeat(2,1fr); }
  .stats { grid-template-columns:repeat(2,1fr); }
  .contact-info { grid-template-columns:1fr; }
  .footer .container { grid-template-columns:1fr 1fr; }
  .hero h1 { font-size:36px; }
  .hero p { font-size:16px; }
}
@media (max-width:768px) {
  .menu-toggle { display:block; }
  .nav { display:none; flex-direction:column; position:absolute; top:72px; left:0; width:100%; background:#1c1c1c; box-shadow:0 5px 20px rgba(0,0,0,0.3); padding:20px; }
  .nav.open { display:flex; }
  .news-card { flex-direction:column; }
  .news-card .date-box { min-width:auto; flex-direction:row; gap:8px; padding:12px; }
  .timeline::before { left:20px; }
  .timeline-item,.timeline-item:nth-child(even) { flex-direction:column; }
  .timeline-item .dot { left:20px; }
  .timeline-item .content { max-width:100%; margin-left:50px; border-left:3px solid #e8a850; border-right:none; }
  .timeline-item .year { text-align:left; padding-left:50px; }
}
@media (max-width:576px) {
  .grid-3,.grid-4 { grid-template-columns:1fr; }
  .stats { grid-template-columns:1fr; }
  .footer .container { grid-template-columns:1fr; }
  .hero h1 { font-size:28px; }
  .section-title h2 { font-size:28px; }
}
