/* ============================================
   Golden Honor Trophy Crafts - Frontend Style
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --gold: #C9A84C;
    --gold-dark: #A8892E;
    --gold-light: #F5E6C8;
    --dark: #1a1a2e;
    --dark2: #16213e;
    --gray: #666;
    --light: #f8f9fa;
    --white: #ffffff;
    --border: #e0e0e0;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 8px;
    --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    color: #333;
    line-height: 1.7;
    background: var(--white);
    min-width: 1500px;
}

.container { width: 1500px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============ HEADER ============ */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--gold);
    transition: var(--transition);
}
.header.scrolled { background: rgba(26, 26, 46, 0.98); box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.header-inner {
    width: 1500px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between; height: 75px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 48px; height: 48px; }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text h1 { font-size: 20px; color: var(--gold); font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.logo-text span { font-size: 11px; color: #aaa; display: block; letter-spacing: 2px; text-transform: uppercase; }
.nav-list { display: flex; gap: 5px; }
.nav-link {
    display: block; padding: 10px 18px; color: #ccc; font-size: 14px; font-weight: 500;
    border-radius: 4px; transition: var(--transition); letter-spacing: 0.5px; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--gold); background: rgba(201,168,76,0.1); }

/* ============ BANNER SLIDER ============ */
.banner-section { margin-top: 75px; position: relative; }
.banner-slider { position: relative; width: 100%; height: 600px; overflow: hidden; }
.banner-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0;
    transition: opacity 0.8s ease; background-size: cover; background-position: center;
}
.banner-slide.active { opacity: 1; }
.banner-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(26,26,46,0.7) 0%, rgba(26,26,46,0.3) 100%);
    display: flex; align-items: center;
}
.banner-content { width: 1500px; margin: 0 auto; padding: 0 20px; color: #fff; }
.banner-content h2 { font-size: 48px; font-weight: 700; margin-bottom: 16px; max-width: 700px; line-height: 1.3; }
.banner-content h2 em { color: var(--gold); font-style: normal; }
.banner-content p { font-size: 18px; max-width: 550px; opacity: 0.9; margin-bottom: 30px; }
.banner-placeholder {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex; align-items: center; justify-content: center;
}
.banner-placeholder .placeholder-text { text-align: center; color: rgba(255,255,255,0.3); }
.banner-placeholder .placeholder-icon { font-size: 80px; margin-bottom: 16px; }
.banner-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.banner-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition); border: none; }
.banner-dot.active { background: var(--gold); width: 36px; border-radius: 6px; }
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.banner-arrow:hover { background: var(--gold); border-color: var(--gold); }
.banner-arrow.prev { left: 20px; }
.banner-arrow.next { right: 20px; }

/* ============ SECTIONS ============ */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 36px; font-weight: 700; color: var(--dark); margin-bottom: 12px; position: relative; display: inline-block; }
.section-header h2::after {
    content: ''; display: block; width: 60px; height: 3px; background: var(--gold);
    margin: 14px auto 0; border-radius: 2px;
}
.section-header p { color: var(--gray); font-size: 16px; max-width: 600px; margin: 0 auto; }
.section-light { background: var(--light); }

/* ============ INTRO SECTION ============ */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.intro-image img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 420px; object-fit: cover; }
.intro-image .placeholder { width: 100%; height: 420px; background: linear-gradient(135deg, #f5e6c8, #e8d5a3); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 80px; }
.intro-text h3 { font-size: 28px; color: var(--dark); margin-bottom: 20px; line-height: 1.4; }
.intro-text p { color: var(--gray); margin-bottom: 16px; line-height: 1.9; font-size: 15px; }
.btn { display: inline-block; padding: 12px 32px; border-radius: 4px; font-size: 14px; font-weight: 600; letter-spacing: 1px; cursor: pointer; transition: var(--transition); text-transform: uppercase; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(201,168,76,0.4); }
.btn-outline { border: 2px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: #fff; }

/* ============ FEATURED PRODUCTS ============ */
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.featured-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition);
}
.featured-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.featured-card-img { height: 240px; overflow: hidden; }
.featured-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.featured-card:hover .featured-card-img img { transform: scale(1.06); }
.featured-card-img .placeholder { width: 100%; height: 240px; background: linear-gradient(135deg, #f5e6c8, #e8d5a3); display: flex; align-items: center; justify-content: center; font-size: 50px; }
.featured-card-body { padding: 20px; }
.featured-card-body h4 { font-size: 16px; color: var(--dark); margin-bottom: 8px; }
.featured-card-body p { color: var(--gray); font-size: 13px; line-height: 1.6; }

/* ============ WHY US ============ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.why-card { text-align: center; padding: 40px 28px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition); border: 1px solid transparent; }
.why-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.why-icon { font-size: 44px; margin-bottom: 16px; }
.why-card h4 { font-size: 17px; color: var(--dark); margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* ============ PRODUCTS PAGE ============ */
.products-header { background: linear-gradient(135deg, #1a1a2e, #16213e); padding: 60px 0; text-align: center; color: #fff; margin-top: 75px; }
.products-header h2 { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.products-header p { opacity: 0.7; font-size: 15px; }
.products-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; padding: 60px 0; }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); cursor: pointer; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.12); }
.product-card-img { height: 200px; overflow: hidden; position: relative; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-img .placeholder { width: 100%; height: 200px; background: linear-gradient(135deg, #f5e6c8, #e8d5a3); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.product-card-body { padding: 14px 16px; }
.product-card-body h4 { font-size: 14px; color: var(--dark); margin-bottom: 6px; font-weight: 600; }
.product-card-body p { font-size: 12px; color: var(--gray); line-height: 1.5; }
.product-card-body .material { display: inline-block; padding: 2px 10px; background: var(--gold-light); color: var(--gold-dark); font-size: 11px; border-radius: 3px; margin-top: 6px; }
.no-products { text-align: center; padding: 80px 20px; color: var(--gray); }
.no-products .icon { font-size: 60px; margin-bottom: 16px; }

/* ============ CERTIFICATES PAGE ============ */
.certs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cert-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.cert-card:hover { transform: translateY(-4px); }
.cert-card-img { height: 260px; overflow: hidden; }
.cert-card-img img { width: 100%; height: 100%; object-fit: contain; background: #f9f9f9; padding: 20px; }
.cert-card-img .placeholder { width: 100%; height: 260px; background: linear-gradient(135deg, #f5e6c8, #e8d5a3); display: flex; align-items: center; justify-content: center; font-size: 50px; }
.cert-card-body { padding: 16px; text-align: center; }
.cert-card-body h4 { font-size: 15px; color: var(--dark); }

/* ============ FACTORY PAGE ============ */
.factory-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.factory-item { border-radius: var(--radius); overflow: hidden; height: 280px; }
.factory-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.factory-item:hover img { transform: scale(1.06); }
.factory-item .placeholder { width: 100%; height: 280px; background: linear-gradient(135deg, #f5e6c8, #e8d5a3); display: flex; align-items: center; justify-content: center; font-size: 50px; }
.factory-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 44px; }
.factory-info-card { padding: 32px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border-left: 3px solid var(--gold); }
.factory-info-card h4 { font-size: 17px; color: var(--dark); margin-bottom: 10px; }
.factory-info-card p { font-size: 14px; color: var(--gray); line-height: 1.8; }

/* ============ NEWS PAGE ============ */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.12); }
.news-card-img { height: 200px; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-img .placeholder { width: 100%; height: 200px; background: linear-gradient(135deg, #f5e6c8, #e8d5a3); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.news-card-body { padding: 20px; }
.news-card-body .date { font-size: 12px; color: var(--gold); margin-bottom: 8px; font-weight: 500; }
.news-card-body h4 { font-size: 16px; color: var(--dark); margin-bottom: 10px; line-height: 1.5; }
.news-card-body p { font-size: 13px; color: var(--gray); line-height: 1.7; }
.news-detail { max-width: 900px; margin: 40px auto 0; }
.news-detail img { border-radius: var(--radius); margin-bottom: 24px; width: 100%; max-height: 450px; object-fit: cover; }
.news-detail .date { color: var(--gold); font-size: 13px; margin-bottom: 10px; }
.news-detail h3 { font-size: 28px; color: var(--dark); margin-bottom: 20px; }
.news-detail .content { font-size: 15px; color: var(--gray); line-height: 2; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--gold); font-size: 14px; }
.back-link:hover { text-decoration: underline; }

/* ============ CONTACT PAGE ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info h3 { font-size: 24px; color: var(--dark); margin-bottom: 20px; }
.contact-info p { color: var(--gray); margin-bottom: 24px; line-height: 1.8; font-size: 15px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-item-icon { width: 44px; height: 44px; background: var(--gold-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-item-text h5 { font-size: 14px; color: var(--dark); margin-bottom: 4px; }
.contact-item-text p { font-size: 13px; color: var(--gray); margin-bottom: 0; }
.contact-form { background: var(--white); padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form h4 { font-size: 20px; color: var(--dark); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; color: var(--dark); margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 4px;
    font-size: 14px; font-family: inherit; transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.1); }
.form-group textarea { height: 140px; resize: vertical; }
.form-status { padding: 12px; border-radius: 4px; margin-bottom: 16px; font-size: 14px; display: none; }
.form-status.success { display: block; background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-status.error { display: block; background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.map-container { margin-top: 40px; border-radius: var(--radius); overflow: hidden; height: 400px; background: #f0f0f0; display: flex; align-items: center; justify-content: center; color: #999; font-size: 16px; }

/* ============ FOOTER ============ */
.footer { background: var(--dark); color: #ccc; padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-bottom: 40px; }
.footer-col h4 { font-size: 16px; color: var(--gold); margin-bottom: 16px; }
.footer-col p, .footer-col li { font-size: 13px; line-height: 2; color: #aaa; }
.footer-col li a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; text-align: center; font-size: 12px; color: #777; }

/* ============ POPUP / MODAL ============ */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.75); z-index: 2000; display: flex; align-items: center; justify-content: center; }
.modal-content { background: var(--white); border-radius: var(--radius); max-width: 650px; width: 90%; max-height: 85vh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 28px; cursor: pointer; color: #666; z-index: 10; }
.modal-close:hover { color: #000; }
.modal-img { width: 100%; height: 350px; object-fit: cover; }
.modal-body { padding: 28px; }
.modal-body h3 { font-size: 22px; color: var(--dark); margin-bottom: 12px; }
.modal-body p { font-size: 14px; color: var(--gray); line-height: 1.9; }
.modal-body .meta { display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.modal-body .meta span { padding: 4px 12px; background: var(--gold-light); color: var(--gold-dark); border-radius: 3px; font-size: 12px; }

/* ============ CONTENT BLOCK (用于单页) ============ */
.content-block { font-size: 15px; color: var(--gray); line-height: 2; }
.content-block p { margin-bottom: 16px; }

/* ============ ABOUT PAGE TIMELINE ============ */
.timeline { position: relative; padding: 20px 0; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--gold-light); transform: translateX(-50%); }
.timeline-item { display: flex; margin-bottom: 40px; position: relative; }
.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-year { width: 50%; text-align: right; padding-right: 60px; font-size: 24px; font-weight: 700; color: var(--gold); }
.timeline-item:nth-child(even) .timeline-year { text-align: left; padding-left: 60px; padding-right: 0; }
.timeline-dot { position: absolute; left: 50%; top: 8px; width: 14px; height: 14px; background: var(--gold); border-radius: 50%; transform: translateX(-50%); z-index: 1; }
.timeline-event { width: 50%; padding-left: 60px; font-size: 15px; color: var(--gray); padding-top: 6px; }
.timeline-item:nth-child(even) .timeline-event { padding-right: 60px; padding-left: 0; text-align: right; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1540px) {
    body { min-width: auto; }
    .container, .header-inner, .banner-content { width: 100%; max-width: 1500px; }
    .products-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1200px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .certs-grid { grid-template-columns: repeat(2, 1fr); }
    .intro-grid, .contact-grid { grid-template-columns: 1fr; }
    .news-list { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .banner-slider { height: 400px; }
    .banner-content h2 { font-size: 32px; }
}
@media (max-width: 768px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .certs-grid { grid-template-columns: 1fr; }
    .news-list { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .featured-grid { grid-template-columns: 1fr; }
    .nav-list { display: none; }
}
