/* ============ Reset & Base ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; color: #333; background: #f5f5f5; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
a:hover { color: #c8a46e; }
ul, li { list-style: none; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

/* ============ Header ============ */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(10px);
    transition: background 0.3s;
}
.header-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 30px;
    display: flex; align-items: center; justify-content: space-between;
    height: 70px;
}
.logo a {
    display: inline-flex; align-items: center;
    font-size: 24px; font-weight: bold; color: #fff; letter-spacing: 2px;
}
.logo-image {
    height: 38px; width: auto; object-fit: contain;
}
.nav { display: flex; gap: 30px; }
.nav a { color: #ccc; font-size: 15px; padding: 5px 0; position: relative; }
.nav a:hover { color: #fff; }
.nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: #c8a46e; transition: width 0.3s;
}
.nav a:hover::after { width: 100%; }
.header-right { color: #999; font-size: 13px; cursor: pointer; }
.lang-toggle { color: #ccc; padding: 4px 12px; border: 1px solid #555; border-radius: 3px; }
.lang-toggle:hover { border-color: #c8a46e; color: #c8a46e; }

/* ============ Banner Carousel ============ */
.banner-section {
    position: relative; width: 100%; height: 100vh; overflow: hidden; margin-top: 0;
}
.banner-carousel {
    width: 100%; height: 100%; position: relative;
}
.banner-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1s ease;
}
.banner-slide.active { opacity: 1; }
.banner-slide img {
    width: 100%; height: 100%; object-fit: cover;
}
.banner-slide .slide-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 60px 80px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.banner-slide .slide-overlay h3 {
    font-size: 32px; color: #fff; margin-bottom: 10px; font-weight: 600;
}
.banner-slide .slide-overlay p {
    font-size: 16px; color: #ccc; letter-spacing: 3px;
}
.banner-slide .slide-overlay .slide-btn {
    display: inline-block; margin-top: 20px; padding: 10px 30px;
    border: 1px solid rgba(255,255,255,0.5); color: #fff; font-size: 14px;
    border-radius: 2px; transition: all 0.3s;
}
.banner-slide .slide-overlay .slide-btn:hover {
    background: #c8a46e; border-color: #c8a46e; color: #fff;
}
.banner-dots {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 12px; z-index: 10;
}
.banner-dot {
    width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4);
    cursor: pointer; transition: all 0.3s;
}
.banner-dot.active { background: #c8a46e; transform: scale(1.3); }
.banner-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px; background: rgba(0,0,0,0.4); border: none;
    color: #fff; font-size: 20px; cursor: pointer; z-index: 10;
    transition: background 0.3s; border-radius: 4px;
}
.banner-btn:hover { background: rgba(200,164,110,0.8); }
.banner-prev { left: 20px; }
.banner-next { right: 20px; }

/* ============ Section Common ============ */
.section {
    padding: 80px 0;
}
.section-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 30px;
}
.section-header {
    text-align: center; margin-bottom: 50px;
}
.section-header h2 {
    font-size: 28px; font-weight: 600; letter-spacing: 3px; margin-bottom: 10px;
}
.section-header h2 span {
    display: block; font-size: 14px; color: #999; font-weight: 300;
    letter-spacing: 1px; margin-top: 8px;
}
.section-more {
    text-align: center; margin-top: 40px;
}
.section-more a {
    display: inline-block; padding: 10px 30px; border: 1px solid #ddd;
    color: #666; font-size: 14px; border-radius: 2px; transition: all 0.3s;
}
.section-more a:hover { border-color: #c8a46e; color: #c8a46e; }

/* ============ Products ============ */
.products-section { background: #fff; }
.products-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.product-card {
    position: relative; background: #f8f8f8; border-radius: 8px;
    overflow: hidden; transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex; flex-direction: column;
    height: 380px;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.product-card .card-img {
    width: 100%; flex: 1; min-height: 0; object-fit: cover;
}
.product-card .card-body {
    padding: 16px 20px 20px; flex-shrink: 0;
}
.product-card .card-tagline {
    font-size: 13px; color: #999; margin-bottom: 8px; line-height: 1.6;
}
.product-card .card-title {
    font-size: 18px; font-weight: 600; color: #333;
}
.product-card .card-category {
    font-size: 12px; color: #c8a46e; margin-top: 5px;
}
.product-card.featured {
    grid-column: span 2;
}
.product-card .card-link {
    position: absolute; bottom: 20px; right: 20px;
    font-size: 13px; color: #c8a46e; opacity: 0; transition: opacity 0.3s;
}
.product-card:hover .card-link { opacity: 1; }

/* ============ News ============ */
.news-section { background: #fafafa; }
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 0; border-bottom: 1px solid #eee;
    transition: background 0.3s;
}
.news-item:hover { background: #f0f0f0; padding-left: 10px; padding-right: 10px; }
.news-item .news-title {
    flex: 1; font-size: 16px; color: #333; margin-right: 20px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-item:hover .news-title { color: #c8a46e; }
.news-item .news-date {
    font-size: 14px; color: #999; white-space: nowrap;
}

/* ============ About ============ */
.about-section { background: #fff; }
.about-slogan {
    font-size: 24px; color: #c8a46e; letter-spacing: 8px;
    margin-top: 15px; font-weight: 300;
}
.about-content { max-width: 800px; margin: 0 auto; }
.about-content p {
    font-size: 15px; line-height: 2; color: #666;
    text-indent: 2em; margin-bottom: 15px;
}
.about-markdown p { font-size: 15px; line-height: 2; color: #666; margin-bottom: 15px; }
.about-markdown strong { color: #c8a46e; font-weight: 600; }

/* ============ Join Us ============ */
.join-section { background: #fafafa; color: #333; }
.join-section .section-header h2 { color: #333; }
.join-section .section-header h2 span { color: #9aa3af; }
.join-cards {
    display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
}
.join-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 260px; min-height: 230px; padding: 40px 30px; background: #fff;
    border: 1px solid #eceff3; border-radius: 8px;
    transition: all 0.3s; text-align: center; color: inherit;
    position: relative; z-index: 2; overflow: hidden;
    box-shadow: 0 8px 24px rgba(18, 28, 45, 0.05);
}
.join-card-button {
    appearance: none; font: inherit; cursor: pointer;
}
.join-card:hover {
    background: #fff; border-color: #d8dee7;
    transform: translateY(-5px); box-shadow: 0 14px 28px rgba(18, 28, 45, 0.08);
}
.join-card h3 {
    font-size: 24px; line-height: 1.3; color: #2b3442; margin-bottom: 12px;
    position: relative; z-index: 2; font-weight: 600; letter-spacing: 1px;
}
.join-card h3::after {
    content: ''; display: block; width: 36px; height: 2px; margin: 14px auto 0;
    background: rgba(200,164,110,0.9);
}
.join-card p {
    font-size: 14px; color: #8a94a3; position: relative; z-index: 2;
    line-height: 1.9; max-width: 170px;
}
.join-card-duck {
    position: absolute; bottom: -10px; width: 96px; height: auto;
    object-fit: contain; opacity: 0.18; pointer-events: none; z-index: 1;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.10));
}
.join-card-duck-campus { left: -8px; transform: rotate(-8deg); }
.join-card-duck-social { right: -8px; transform: rotate(-8deg); width: 92px; }
.join-card-duck-mirror { transform: scaleX(-1) rotate(-8deg); }

/* ============ Follow ============ */
.follow-section { background: #f5f5f5; }
.follow-links { width: 100%; }
.contact-layout {
    display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: stretch;
    max-width: 1160px; margin: 0 auto;
}
.contact-info-card {
    background: #fff; border-radius: 18px; padding: 32px 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    display: flex; flex-direction: column; justify-content: center; min-height: 420px;
}
.contact-item { padding: 18px 0; border-bottom: 1px solid #eef1f4; }
.contact-item:last-child { border-bottom: none; }
.contact-label { font-size: 16px; color: #98a2b3; margin-bottom: 8px; letter-spacing: 1px; }
.contact-value { font-size: 17px; line-height: 1.8; color: #7d8795; font-weight: 500; }
.contact-value a { color: #7d8795; }
.contact-value a:hover { color: #c8a46e; }
.contact-map-wrap {
    background: #fff; border-radius: 18px; padding: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    min-height: 420px; display: flex; align-items: center; justify-content: center;
}
.contact-map-image { width: 100%; height: 400px; object-fit: cover; border-radius: 14px; }


/* ============ Footer ============ */
.footer {
    background: #111; color: #999; padding: 40px 0;
    font-size: 13px; line-height: 1.8;
}
.footer-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 30px;
}
.footer-links {
    display: flex; gap: 30px; margin-bottom: 20px;
    padding-bottom: 20px; border-bottom: 1px solid #333;
}
.footer-links a { color: #999; font-size: 14px; }
.footer-links a:hover { color: #c8a46e; }
.footer-info p { margin-bottom: 5px; text-align: center; }
.footer-info a { color: #999; }
.footer-info a:hover { color: #c8a46e; }
.footer-police-link { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; line-height: 1.8; }
.footer-police-link span { display: inline-flex; align-items: center; }
.footer-police-icon { width: 18px; height: 18px; object-fit: contain; vertical-align: middle; position: relative; top: -1px; flex: 0 0 auto; }

/* ============ Site Modal ============ */
.site-modal.hidden { display: none; }
.site-modal { position: fixed; inset: 0; z-index: 3000; }
.site-modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.site-modal-panel {
    position: relative; z-index: 1; width: min(520px, calc(100% - 32px));
    margin: 16vh auto 0; background: #fff; border-radius: 16px; padding: 28px 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25); text-align: center;
}
.site-modal-panel h3 { font-size: 24px; margin-bottom: 14px; color: #222; }
.site-modal-panel p { font-size: 16px; color: #555; line-height: 1.8; }
.site-modal-panel a { color: #c8a46e; }
.site-modal-close {
    position: absolute; right: 14px; top: 10px; width: 36px; height: 36px;
    border: none; background: transparent; font-size: 28px; cursor: pointer; color: #666;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .header-inner { height: 55px; }
    .logo-image { height: 30px; }
    .nav { gap: 15px; }
    .nav a { font-size: 13px; }
    .banner-section { height: 60vh; }
    .banner-slide .slide-overlay { padding: 30px; }
    .banner-slide .slide-overlay h3 { font-size: 22px; }
    .products-grid { grid-template-columns: 1fr; }
    .product-card.featured { grid-column: span 1; }
    .section { padding: 50px 0; }
    .section-header h2 { font-size: 22px; }
    .about-slogan { font-size: 18px; letter-spacing: 4px; }
    .footer-links { flex-wrap: wrap; gap: 15px; }
    .join-card { min-height: 210px; }
    .join-card h3 { font-size: 20px; }
    .join-card p { max-width: none; }
    .join-card-duck, .join-card-duck-campus, .join-card-duck-social { width: 72px; }
    .contact-layout { grid-template-columns: 1fr; }
    .contact-info-card, .contact-map-wrap { min-height: auto; }
    .contact-value { font-size: 16px; }
    .contact-map-image { height: 280px; }
}

/* ============ Animations ============ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}
