:root {
    --brand: #1ABC9C;
    --brand-dark: #16A085;
    --brand-light: #48C9B0;
    --brand-soft: #E8F8F5;
    --nav-height: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #2c3e50;
    background: #fafbfc;
}

/* ========= NAVBAR ========= */
.navbar-hyjs {
    background: var(--brand);
    box-shadow: 0 2px 12px rgba(26,188,156,0.25);
    padding: 14px 0;
}
.navbar-hyjs .navbar-brand { color: #fff; }
.navbar-hyjs .brand-logo {
    background: #fff;
    border-radius: 6px;
    padding: 2px;
}
.navbar-hyjs .brand-name {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.navbar-hyjs .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 8px 14px !important;
    position: relative;
}
.navbar-hyjs .nav-link:hover,
.navbar-hyjs .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}
.navbar-hyjs .dropdown-menu {
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-radius: 6px;
    padding: 6px 0;
}
.navbar-hyjs .dropdown-item {
    color: #34495e;
    padding: 8px 18px;
}
.navbar-hyjs .dropdown-item:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
}
.navbar-hyjs .navbar-toggler { border: none; }
.navbar-hyjs .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'><path stroke='white' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/></svg>");
}

/* ========= FOOTER ========= */
.footer-hyjs {
    background: var(--brand);
    color: #fff;
    margin-top: 60px;
}
.footer-hyjs .footer-link-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 14px;
    font-size: 1rem;
}
.footer-hyjs .footer-links ul { padding-left: 0; }
.footer-hyjs .footer-links li { margin-bottom: 6px; }
.footer-hyjs .footer-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.footer-hyjs .footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-hyjs .footer-logo-img {
    height: 90px;
    background: #fff;
    border-radius: 10px;
    padding: 6px;
    margin-bottom: 12px;
}
.footer-hyjs .footer-company {
    font-weight: 600;
    font-size: 0.95rem;
}
.footer-hyjs .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
}

/* ========= SECTIONS ========= */
.section { padding: 60px 0; }
.section-alt { background: #f4faf8; }
.section-title {
    text-align: center;
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.9rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 16px;
}
.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--brand);
    border-radius: 2px;
    margin: 12px auto 0;
}
.section-title.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.7s ease; }
.section-title.fade-up.in { opacity: 1; transform: translateY(0); }

/* ========= CAROUSEL ========= */
.hero-carousel .carousel-item img { filter: brightness(0.75); }
.hero-carousel .carousel-caption { bottom: 25%; }
.hero-carousel .carousel-caption h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.hero-carousel .carousel-caption p { font-size: 1.1rem; }

.page-carousel { margin-bottom: 30px; }
.page-carousel .carousel-item img { object-fit: cover; }

/* ========= BOOK ========= */
.book-container { margin-top: 30px; }
.book-wrapper {
    perspective: 1600px;
    width: 400px;
    height: 300px;
    margin: 0 auto 40px;
    position: relative;
    transform-style: preserve-3d;
}
.book {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
}
.book-page {
    position: absolute;
    inset: 0;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    transform-origin: left center;
    backface-visibility: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.book-page .book-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.book-page-1 { transform: translateZ(-4px); }
.book-page-2 { transform: translateZ(-8px); }
.book-back {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    transform: translateZ(-12px);
    z-index: 0;
}
.book-front {
    z-index: 10;
    transform: translateZ(0);
    transition: transform 1.2s cubic-bezier(0.45,0.05,0.55,0.95), z-index 0s linear 0.6s;
}
.book-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(26,188,156,0.55);
    color: #fff;
}
.book-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 4px;
}
.book-underline {
    width: 80px;
    height: 3px;
    background: #fff;
    margin: 10px 0 14px;
}
.book-sub { font-size: 0.95rem; letter-spacing: 2px; }

/* 翻页动画 */
.book-wrapper.book-open .book-front {
    transform: rotateY(-160deg);
    z-index: 1;
    transition: transform 1.2s cubic-bezier(0.45,0.05,0.55,0.95), z-index 0s linear 0s;
}

.book-items {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
    gap: 20px;
}
.book-items.show { opacity: 1; transform: translateY(0); }

.biz-card {
    width: 100%;
    height: 560px;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
}
.biz-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(26,188,156,0.3);
}
.biz-card img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}
.biz-card .biz-cap {
    text-align: center;
    padding: 16px;
    font-weight: 700;
    font-size: 1.15rem;
    background: #fff;
    color: #2c3e50;
}

/* ========= SPLIT SECTIONS ========= */
.split-section { padding: 36px 0; }
.split-text { color: #34495e; line-height: 1.9; font-size: 1.05rem; }
.split-img-col { display: flex; justify-content: center; align-items: center; }
.split-img {
    width: 100%;
    max-width: 480px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.split-divider {
    width: 4px;
    height: 120px;
    background: var(--brand);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ========= EQUIPMENT GRID ========= */
.equipment-grid .equip-item {
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    background: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}
.equipment-grid .equip-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 26px rgba(26,188,156,0.25);
}
.equipment-grid .equip-item img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}
.equipment-grid .equip-caption {
    background: var(--brand);
    color: #fff;
    text-align: center;
    padding: 10px;
    font-weight: 600;
}
.modal-header-hyjs {
    background: var(--brand);
    color: #fff;
    border-radius: 0;
}
.modal-header-hyjs .modal-title { color: #fff; font-weight: 600; }
.modal-header-hyjs .btn-close-white { filter: invert(1); }

/* ========= NEWS LIST ========= */
.news-list { max-width: 900px; margin: 0 auto; }
.news-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #ecf0f1;
    color: #2c3e50;
    text-decoration: none;
    transition: background 0.2s;
}
.news-item:hover { background: var(--brand-soft); }
.news-item-title { font-size: 1.05rem; font-weight: 500; }
.news-item-time { color: #95a5a6; font-size: 0.9rem; }

/* ========= NEWS DETAIL ========= */
.news-detail { max-width: 880px; margin: 0 auto; }
.news-detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.news-detail-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 14px;
    margin-bottom: 16px;
}
.news-detail-keywords {
    background: var(--brand-soft);
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
    color: var(--brand-dark);
    font-size: 0.95rem;
}
.news-detail-keywords .keywords-label { font-weight: 700; margin-right: 6px; }
.news-detail-content {
    font-size: 1.05rem;
    line-height: 1.95;
    color: #2c3e50;
}
.news-detail-content img { max-width: 100%; border-radius: 6px; margin: 12px 0; }
.news-detail-content pre { background: #f4f6f7; padding: 14px; border-radius: 6px; overflow-x: auto; }
.news-detail-content code { background: #f4f6f7; padding: 2px 6px; border-radius: 3px; }

/* ========= CONTACT ========= */
.contact-row { align-items: stretch; }
.contact-info-col { padding-right: 30px; }
.contact-info { display: flex; flex-direction: column; gap: 26px; padding: 20px 0; }
.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.contact-icon {
    font-size: 1.8rem;
    color: var(--brand);
    width: 44px;
    text-align: center;
    flex-shrink: 0;
}
.contact-label { font-weight: 700; color: #2c3e50; margin-bottom: 4px; }
.contact-value { color: #7f8c8d; }
.contact-map {
    width: 100%;
    height: 420px;
    border-radius: 10px;
    border: 1px solid #ecf0f1;
    overflow: hidden;
}

/* ========= ADMIN ========= */
.admin-login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}
.admin-login-wrap { width: 100%; max-width: 400px; padding: 20px; }
.admin-login-box {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}
.admin-login-btn { background: var(--brand); border-color: var(--brand); }
.admin-login-btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

.admin-body { background: #f4f6f7; }
.admin-navbar {
    background: var(--brand);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.admin-navbar .navbar-brand { color: #fff !important; }

.btn-primary { background: var(--brand); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline-primary { color: var(--brand); border-color: var(--brand); }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); }

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {
    .book-wrapper { width: 300px; height: 240px; }
    .book-title { font-size: 1.5rem; }
    .book-sub { font-size: 0.8rem; }
    .biz-card { height: auto; }
    .biz-card img { height: 280px; }
    .split-section { flex-direction: column; }
    .split-divider { width: 120px; height: 4px; margin: 20px 0; }
    .split-section .split-divider { margin: 20px auto; }
    .contact-row { flex-direction: column; }
    .contact-map { height: 300px; }
    .footer-links .col-4 { margin-bottom: 20px; }
}