/* ============ CSS Reset & Variables ============ */
:root {
    --primary: #1a5276;
    --primary-light: #2980b9;
    --primary-dark: #0e2f44;
    --accent: #e67e22;
    --accent-light: #f39c12;
    --hls-red: #c0392b;
    --hls-blue: #2471a3;
    --steel: #34495e;
    --steel-light: #5d6d7e;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --border: #dfe6e9;
    --success: #27ae60;
    --danger: #e74c3c;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --font: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.6;
    background: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

img, iframe, video, embed, object {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ Header ============ */
.site-header {
    background: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-dark);
    text-decoration: none;
}

.logo:hover {
    color: var(--primary-dark);
}

.logo-hls-img {
    height: 40px !important;
    width: auto !important;
    max-width: 120px !important;
    object-fit: contain;
}

.logo-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
    margin: 0 4px;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--hls-red);
    letter-spacing: 2px;
}

.logo-content-brand {
    font-size: 0.75rem;
    color: var(--hls-blue);
    letter-spacing: 1px;
    font-weight: 500;
}

.main-nav {
    display: flex;
    gap: 4px;
}

.nav-link {
    color: var(--steel);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: rgba(26, 82, 118, 0.08);
}

.nav-icon {
    font-size: 0.85em;
    margin-right: 6px;
    opacity: 0.8;
}

.nav-link-highlight {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.35);
}

.nav-link-highlight:hover {
    background: linear-gradient(135deg, #d35400 0%, var(--accent) 100%);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(230, 126, 34, 0.45);
}

.mobile-menu-btn {
    display: none;
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--steel);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1100;
    flex-direction: column;
    padding: 0;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--primary-dark);
    color: #fff;
}

.mobile-menu-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-body {
    background: #fff;
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.mobile-menu-body a {
    color: var(--steel);
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    transition: var(--transition);
}

.mobile-menu-body a i {
    width: 24px;
    text-align: center;
    color: var(--primary);
}

.mobile-menu-body a:hover,
.mobile-menu-body a.active {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 24px;
}

.mobile-menu-highlight {
    background: #fff7ed;
    color: var(--accent) !important;
    font-weight: 600;
}

.mobile-menu-highlight i {
    color: var(--accent) !important;
}

body.menu-open {
    overflow: hidden;
}

/* ============ Hero Section ============ */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--steel) 50%, var(--primary) 100%);
    color: #fff;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-brands {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.hero-hls-logo {
    height: 64px !important;
    width: auto !important;
    max-width: 160px !important;
    max-height: 64px !important;
    object-fit: contain;
}

.hero-brand-divider {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.3);
}

.hero-brand-text {
    display: flex;
    flex-direction: column;
}

.hero-company-name {
    font-size: 0.95rem;
    opacity: 0.9;
    letter-spacing: 1px;
}

.hero-content-brand {
    font-size: 0.8rem;
    color: var(--accent-light);
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--accent-light);
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-quick-nav {
    display: none;
    position: relative;
    z-index: 2;
    margin-top: 40px;
    padding: 0 16px;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 72px;
    padding: 14px 10px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.hero-quick-btn:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-2px);
    color: #fff;
}

.hero-quick-btn i {
    font-size: 1.4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    color: #fff;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* ============ Sections ============ */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* ============ Product Cards ============ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.product-card h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.product-card p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.product-card .specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spec-tag {
    background: var(--bg-light);
    color: var(--steel);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--border);
}

/* ============ Article List ============ */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 24px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.article-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.article-item-main {
    flex: 1;
    min-width: 0;
}

.article-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.article-item-category {
    background: rgba(26, 82, 118, 0.08);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.article-item-date {
    font-size: 0.8rem;
    color: var(--text-light);
    white-space: nowrap;
}

.article-item h3 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 6px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article-item-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--primary);
    flex-shrink: 0;
    transition: var(--transition);
}

.article-item:hover .article-item-arrow {
    background: var(--primary);
    color: #fff;
}

/* 首页紧凑文章列表 */
.article-list-compact .article-item {
    padding: 16px 20px;
}

.article-list-compact .article-item h3 {
    font-size: 1.05rem;
    -webkit-line-clamp: 1;
}

.article-list-compact .article-item p {
    -webkit-line-clamp: 1;
}

/* ============ Tool Grid ============ */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.tool-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    text-align: center;
    cursor: pointer;
    display: block;
    color: inherit;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    color: inherit;
}

.tool-card .tool-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.tool-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.tool-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============ Tool Page Layout ============ */
.tool-page {
    padding: 40px 0 80px;
    min-height: calc(100vh - 72px - 300px);
}

.tool-page .tool-header {
    text-align: center;
    margin-bottom: 40px;
}

.tool-page .tool-header h1 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.tool-page .tool-header p {
    color: var(--text-light);
}

.calc-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.calc-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
    overflow-x: auto;
}

.calc-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    color: var(--text-light);
    font-size: 0.95rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: var(--transition);
    font-weight: 500;
}

.calc-tab:hover {
    color: var(--primary);
}

.calc-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.calc-form {
    display: none;
}

.calc-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--steel);
    font-size: 0.9rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: var(--font);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.calc-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.calc-btn:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.calc-result {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff, #e8f4fd);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-light);
    display: none;
}

.calc-result.show {
    display: block;
}

.calc-result h4 {
    color: var(--primary);
    margin-bottom: 8px;
}

.calc-result .result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    font-family: var(--font-mono);
}

.calc-result .result-detail {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 8px;
}

/* ============ Disclaimer Block ============ */
.disclaimer-block {
    margin-top: 32px;
    padding: 16px 20px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: #92400e;
    line-height: 1.7;
}

.disclaimer-block h4 {
    color: #b45309;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

/* ============ Table Styles ============ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 0.9rem;
}

.data-table th {
    background: var(--primary);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
}

.data-table tr:hover {
    background: var(--bg-light);
}

.data-table tr:nth-child(even) {
    background: #fafbfc;
}

/* ============ About Page ============ */
.about-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--steel));
    color: #fff;
    padding: 80px 0 60px;
    text-align: center;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.about-content {
    padding: 60px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.about-text p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--steel);
}

.info-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 32px;
    border: 1px solid var(--border);
}

.info-card h4 {
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.info-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-item .label {
    font-weight: 600;
    color: var(--steel);
    min-width: 120px;
}

/* ============ Knowledge Page ============ */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.course-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.course-card .course-level {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.level-入门 { background: #d4edda; color: #155724; }
.level-进阶 { background: #cce5ff; color: #004085; }
.level-高级 { background: #f8d7da; color: #721c24; }

.course-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.course-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.course-card .course-meta {
    font-size: 0.8rem;
    color: var(--steel-light);
}

.course-card .course-source {
    font-size: 0.78rem;
    color: var(--steel-light);
    font-style: italic;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}

/* ============ Collections Page ============ */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.collection-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 5px solid var(--c-color, var(--primary));
}

.collection-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.collection-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    background: var(--c-color, var(--primary));
}

.collection-card-body h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.collection-card-body p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.collection-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--c-color, var(--primary));
}

.collection-block {
    margin-bottom: 40px;
    padding-top: 8px;
    border-top: 3px solid var(--c-color, var(--primary));
    scroll-margin-top: 110px;
}

.collection-block-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
}

.collection-block-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #fff;
    background: var(--c-color, var(--primary));
}

.collection-block-head h2 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    flex: 1;
}

.collection-block-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: var(--c-color, var(--primary));
    padding: 4px 12px;
    border-radius: 20px;
}

.collection-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.collection-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    transition: var(--transition);
}

.collection-item:last-child {
    border-bottom: none;
}

.collection-item:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.collection-ep {
    flex-shrink: 0;
    min-width: 44px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--c-color, var(--primary));
    background: #f3f4f6;
    background: color-mix(in srgb, var(--c-color, var(--primary)) 12%, #fff);
    border-radius: 6px;
    padding: 4px 6px;
}

.collection-item-title {
    flex: 1;
    font-size: 0.95rem;
}

.collection-item-date {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--text-light);
}

.collection-item-arrow {
    flex-shrink: 0;
    color: var(--text-light);
    font-size: 0.8rem;
}

.collection-footnote {
    text-align: center;
    margin-top: 24px;
    padding: 28px;
    background: linear-gradient(135deg, var(--bg-light), #fff);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.collection-footnote p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

/* ============ Contact Page ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    border-radius: 16px;
    padding: 40px;
}

.contact-info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-detail .icon {
    font-size: 1.5rem;
    min-width: 32px;
}

.contact-detail .text h4 {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 400;
    margin-bottom: 4px;
}

.contact-detail .text p {
    font-size: 1rem;
    font-weight: 500;
}

.contact-map {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border);
}

.contact-map h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.contact-map iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: var(--radius);
    background: #e0e0e0;
}

/* ============ Footer ============ */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--accent-light);
}

.footer-brands {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-hls-logo {
    height: 36px !important;
    width: auto !important;
    max-width: 100px !important;
    object-fit: contain;
}

.footer-brand-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.2);
}

.footer-brand-labels {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-brand-labels .company-brand {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.footer-brand-labels .content-brand {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-bottom p {
    margin-bottom: 4px;
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--accent-light);
}

/* ============ Responsive ============ */
@media (max-width: 992px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero {
        padding: 50px 0 40px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero-brands {
        flex-wrap: wrap;
    }
    .hero-hls-logo {
        height: 48px !important;
        max-width: 120px !important;
    }
    .section {
        padding: 40px 0;
    }
    .section-title {
        margin-bottom: 32px;
    }
    .section-title h2 {
        font-size: 1.5rem;
    }
    .section-title p {
        font-size: 0.9rem;
    }
    
    /* 产品卡片：单列但更紧凑 */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .product-card {
        padding: 20px;
    }
    .product-card .card-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    .product-card h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    .product-card p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    .spec-tag {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
    
    /* 工具卡片：改成2列网格 */
    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .tool-card {
        padding: 16px 12px;
    }
    .tool-card .tool-icon {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    .tool-card h3 {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }
    .tool-card p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    /* 课程卡片：单列紧凑 */
    .course-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .course-card {
        padding: 20px;
    }
    .course-card h3 {
        font-size: 1.05rem;
    }
    .course-card p {
        font-size: 0.85rem;
    }
    
    .form-row, .form-row-3 {
        grid-template-columns: 1fr;
    }
    .calc-container {
        padding: 20px;
    }
    .calc-tabs {
        flex-wrap: wrap;
    }
    .calc-tab {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    /* 文章列表优化 */
    .article-list {
        gap: 12px;
    }
    .article-item {
        padding: 16px;
        gap: 12px;
    }
    .article-item h3 {
        font-size: 1rem;
        margin-bottom: 4px;
    }
    .article-item p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    .article-item-arrow {
        width: 32px;
        height: 32px;
    }

    /* 手机端快捷入口显示 */
    .hero-quick-nav {
        display: flex;
    }

    /* 防止横向滚动 */
    body {
        overflow-x: hidden;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* 更小屏幕进一步优化 */
@media (max-width: 480px) {
    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .tool-card {
        padding: 14px 10px;
    }
    .tool-card .tool-icon {
        font-size: 1.5rem;
    }
    .tool-card h3 {
        font-size: 0.85rem;
    }
    .tool-card p {
        font-size: 0.7rem;
    }
    
    .product-card {
        padding: 16px;
    }
    .product-card h3 {
        font-size: 1rem;
    }
}

/* ============ Animations ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ============ Utility ============ */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.text-muted { color: var(--text-light); }
.text-accent { color: var(--accent); }
.fw-bold { font-weight: 700; }

/* ============ 悬浮咨询按钮 ============ */
.floating-consult {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
}
.floating-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(26, 82, 118, 0.35);
    transition: var(--transition);
    font-family: var(--font);
}
.floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(26, 82, 118, 0.45);
}
.floating-btn svg {
    flex-shrink: 0;
}
.consult-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 260px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    overflow: hidden;
    animation: fadeInUp 0.25s ease;
}
.consult-panel-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
}
.consult-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.consult-close:hover {
    color: white;
}
.consult-panel-body {
    padding: 20px 16px;
    text-align: center;
}
.consult-qr-img {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}
.consult-tip {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 14px;
}
.consult-form-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: 6px;
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}
.consult-form-link:hover {
    background: var(--border);
}
@media (max-width: 768px) {
    .floating-consult {
        bottom: 16px;
        right: 16px;
    }
    .floating-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    .floating-btn-text {
        display: none;
    }
    .consult-panel {
        width: 240px;
        right: -4px;
    }
    .consult-qr-img {
        width: 140px;
        height: 140px;
    }
}

/* === 手机端移动适配优化 2026-07-07 === */
@media (max-width: 768px) {
}
@media (max-width: 480px) {
}

/* 手机端底部导航显示 */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex !important;
    }
}
