/* ========== Reset & Base ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333; line-height: 1.6; background: #fff; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ========== Layout ========== */
.container { width: 1200px; max-width: 92%; margin: 0 auto; }

/* ========== Header ========== */
.header {
    background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 72px;
}
.header .container {
    display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-text { font-size: 18px; font-weight: 700; color: #be185d; letter-spacing: 1px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
    padding: 8px 18px; font-size: 15px; color: #555;
    border-radius: 4px; transition: all 0.3s; white-space: nowrap;
}
.nav a:hover, .nav a.active { color: #be185d; background: rgba(190,24,93,0.06); }

/* Mobile hamburger */
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: #333; padding: 8px; }

/* ========== Banner ========== */
.banner {
    margin-top: 72px;
    background: linear-gradient(135deg, #831843 0%, #be185d 50%, #f472b6 100%);
    color: #fff; padding: 100px 0 80px; text-align: center;
}
.banner h1 { font-size: 40px; font-weight: 700; margin-bottom: 16px; letter-spacing: 2px; }
.banner p { font-size: 18px; opacity: 0.85; max-width: 600px; margin: 0 auto; line-height: 1.8; }

/* ========== Page Banner ========== */
.page-banner {
    margin-top: 72px;
    background: linear-gradient(135deg, #831843 0%, #be185d 100%);
    color: #fff; padding: 60px 0; text-align: center;
}
.page-banner h1 { font-size: 30px; font-weight: 700; margin-bottom: 8px; }
.page-banner .breadcrumb { font-size: 14px; opacity: 0.75; }
.page-banner .breadcrumb a { color: #fff; opacity: 0.8; }
.page-banner .breadcrumb a:hover { opacity: 1; }

/* ========== Section ========== */
.section { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 {
    font-size: 28px; color: #1a1a1a; margin-bottom: 10px;
    position: relative; display: inline-block;
}
.section-title h2::after {
    content: ""; display: block; width: 50px; height: 3px;
    background: #be185d; margin: 12px auto 0; border-radius: 2px;
}
.section-title p { font-size: 15px; color: #888; margin-top: 8px; }

/* ========== About ========== */
.about-content { display: flex; gap: 50px; align-items: flex-start; }
.about-text { flex: 1; min-width: 0; }
.about-text h3 { font-size: 22px; color: #be185d; margin-bottom: 16px; }
.about-text p { font-size: 15px; color: #555; line-height: 2; margin-bottom: 12px; }
.about-stats { display: flex; gap: 40px; margin-top: 30px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-item .num { font-size: 36px; font-weight: 700; color: #be185d; }
.stat-item .num span { font-size: 16px; font-weight: normal; }
.stat-item .label { font-size: 14px; color: #888; margin-top: 4px; }
.about-info {
    width: 380px; background: #fdf2f8; border-radius: 12px;
    padding: 30px; flex-shrink: 0;
}
.about-info h4 {
    font-size: 16px; color: #1a1a1a; margin-bottom: 20px;
    padding-bottom: 12px; border-bottom: 1px solid #f9d5e5;
}
.info-item { display: flex; align-items: flex-start; margin-bottom: 16px; font-size: 14px; }
.info-item .label { color: #888; width: 90px; flex-shrink: 0; }
.info-item .value { color: #333; flex: 1; word-break: break-all; }

/* ========== Services ========== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card {
    background: #fff; border: 1px solid #f3e8ff; border-radius: 12px;
    padding: 36px 28px; text-align: center; transition: all 0.3s;
}
.service-card:hover { box-shadow: 0 8px 30px rgba(190,24,93,0.1); border-color: #f9a8d4; transform: translateY(-4px); }
.service-card .icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 28px;
}
.service-card h3 { font-size: 18px; color: #1a1a1a; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: #777; line-height: 1.8; }

/* ========== News Cards (Homepage) ========== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-card {
    background: #fff; border: 1px solid #f3e8ff; border-radius: 12px;
    overflow: hidden; transition: all 0.3s; display: block;
}
.news-card:hover { box-shadow: 0 8px 24px rgba(190,24,93,0.08); transform: translateY(-3px); }
.news-card .thumb {
    height: 180px; background: linear-gradient(135deg, #fce7f3, #fdf2f8);
    display: flex; align-items: center; justify-content: center;
    color: #be185d; font-size: 40px;
}
.news-card .info { padding: 22px; }
.news-card .info h3 {
    font-size: 16px; color: #1a1a1a; margin-bottom: 10px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .info p {
    font-size: 14px; color: #888; line-height: 1.7; margin-bottom: 14px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .meta {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 13px; color: #aaa;
}
.news-card .meta .read-more { color: #be185d; }

/* ========== News List Page ========== */
.news-list { display: flex; flex-direction: column; gap: 24px; }
.news-item {
    display: flex; gap: 24px; background: #fff;
    border: 1px solid #f3e8ff; border-radius: 12px;
    padding: 24px; transition: all 0.3s;
}
.news-item:hover { box-shadow: 0 4px 16px rgba(190,24,93,0.06); border-color: #f9a8d4; }
.news-item .thumb {
    width: 240px; height: 160px;
    background: linear-gradient(135deg, #fce7f3, #fdf2f8);
    border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: #be185d; font-size: 36px;
}
.news-item .content { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.news-item .content h3 { font-size: 18px; color: #1a1a1a; margin-bottom: 12px; line-height: 1.5; }
.news-item .content h3:hover { color: #be185d; }
.news-item .content p {
    font-size: 14px; color: #777; line-height: 1.8; margin-bottom: 16px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-item .meta { font-size: 13px; color: #aaa; }

/* ========== News Detail ========== */
.article { max-width: 800px; margin: 0 auto; padding: 40px 0 60px; }
.article-header { text-align: center; margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid #f3e8ff; }
.article-header h1 { font-size: 24px; color: #1a1a1a; line-height: 1.5; margin-bottom: 16px; }
.article-meta {
    display: flex; align-items: center; justify-content: center;
    gap: 24px; font-size: 14px; color: #999; flex-wrap: wrap;
}
.article-body { font-size: 15px; color: #444; line-height: 2; }
.article-body h2 {
    font-size: 20px; color: #1a1a1a; margin: 30px 0 14px;
    padding-left: 12px; border-left: 3px solid #be185d;
}
.article-body p { margin-bottom: 18px; text-indent: 2em; }
.article-body .img-placeholder {
    width: 100%; height: 300px;
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    border-radius: 8px; margin: 24px 0;
    display: flex; align-items: center; justify-content: center;
    color: #d4789a; font-size: 14px;
}
.article-nav {
    display: flex; justify-content: space-between; gap: 16px;
    margin-top: 50px; padding-top: 24px; border-top: 1px solid #f3e8ff;
}
.article-nav a {
    font-size: 14px; color: #be185d; padding: 8px 16px;
    border: 1px solid #fce7f3; border-radius: 6px; transition: all 0.3s;
    max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.article-nav a:hover { background: #be185d; color: #fff; border-color: #be185d; }

/* ========== Footer ========== */
.footer { background: #1a1f2e; color: #b0b8c8; padding: 50px 0 0; }
.footer-content {
    display: flex; justify-content: space-between; gap: 60px;
    padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { max-width: 360px; }
.footer-brand .logo-text { color: #fff; font-size: 18px; margin-bottom: 14px; font-weight: 700; }
.footer-brand p { font-size: 14px; line-height: 1.8; color: #8891a5; }
.footer-links h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-links a { display: block; font-size: 14px; color: #8891a5; margin-bottom: 10px; }
.footer-links a:hover { color: #fff; }
.footer-contact p { font-size: 14px; color: #8891a5; margin-bottom: 10px; }
.footer-contact strong { color: #ccc; }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 13px; color: #6b7280; }
.footer-bottom a { color: #8891a5; margin: 0 10px; }
.footer-bottom a:hover { color: #fff; }

/* ========== Pagination ========== */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 6px; font-size: 14px;
    border: 1px solid #f3e8ff; color: #555; transition: all 0.3s;
}
.pagination a:hover { border-color: #be185d; color: #be185d; }
.pagination .active { background: #be185d; color: #fff; border-color: #be185d; }

/* ========== Responsive - Tablet ========== */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .about-info { width: 320px; }
    .footer-content { gap: 40px; }
}

/* ========== Responsive - Mobile ========== */
@media (max-width: 768px) {
    html { font-size: 15px; }

    .header { height: auto; min-height: 56px; }
    .header .container { flex-wrap: wrap; padding: 10px 0; height: auto; }
    .logo { flex: 1; }
    .logo-text { font-size: 16px; }
    .menu-toggle { display: block; }

    .nav {
        display: none; width: 100%; flex-direction: column;
        padding: 8px 0; gap: 0; border-top: 1px solid #eee; margin-top: 4px;
    }
    .nav.open { display: flex; }
    .nav a { padding: 12px 16px; width: 100%; border-radius: 0; font-size: 15px; }

    .banner, .page-banner { margin-top: 56px; }
    .banner { padding: 60px 0 50px; }
    .banner h1 { font-size: 24px; letter-spacing: 1px; }
    .banner p { font-size: 15px; }

    .page-banner { padding: 40px 0; }
    .page-banner h1 { font-size: 24px; }

    .section { padding: 40px 0; }
    .section-title { margin-bottom: 30px; }
    .section-title h2 { font-size: 22px; }

    /* About */
    .about-content { flex-direction: column; gap: 30px; }
    .about-info { width: 100%; }
    .about-stats { gap: 20px; }
    .stat-item .num { font-size: 28px; }

    /* Services & News Grid */
    .services-grid { grid-template-columns: 1fr; gap: 20px; }
    .news-grid { grid-template-columns: 1fr; gap: 20px; }

    .service-card { padding: 28px 20px; }
    .service-card .icon { width: 56px; height: 56px; font-size: 24px; margin-bottom: 16px; }
    .service-card h3 { font-size: 16px; }

    /* News List */
    .news-item { flex-direction: column; padding: 16px; gap: 16px; }
    .news-item .thumb { width: 100%; height: 160px; }
    .news-item .content h3 { font-size: 16px; }

    /* Article */
    .article { padding: 20px 0 40px; }
    .article-header h1 { font-size: 20px; }
    .article-meta { gap: 12px; font-size: 13px; }
    .article-body { font-size: 14px; }
    .article-body h2 { font-size: 18px; }
    .article-body .img-placeholder { height: 180px; }
    .article-nav { flex-direction: column; }
    .article-nav a { max-width: 100%; }

    /* Footer */
    .footer { padding: 30px 0 0; }
    .footer-content { flex-direction: column; gap: 24px; padding-bottom: 24px; }
    .footer-brand { max-width: 100%; }
    .footer-brand .logo-text { font-size: 16px; }
    .footer-bottom { padding: 16px 0; font-size: 12px; }
    .footer-bottom p { line-height: 1.8; }
}

/* ========== Small Mobile ========== */
@media (max-width: 480px) {
    .banner h1 { font-size: 20px; }
    .banner p { font-size: 14px; }
    .page-banner h1 { font-size: 20px; }
    .section-title h2 { font-size: 20px; }
    .about-text h3 { font-size: 18px; }
    .about-stats { justify-content: space-between; }
    .stat-item .num { font-size: 24px; }
    .news-item .thumb { height: 140px; }
    .article-header h1 { font-size: 18px; }
    .info-item { flex-direction: column; gap: 2px; }
    .info-item .label { width: auto; }
}
