:root {
    --primary-color: #B71C1C;
    --primary-dark: #8B0000;
    --gold-color: #D4AF37;
    --gold-light: #F4D03F;
    --text-dark: #1A1A1A;
    --text-gray: #555;
    --text-light: #888;
    --bg-light: #FAFAFA;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
}

/* 蓝色主题 */
body.theme-blue {
    --primary-color: #1E88E5;
    --primary-dark: #1565C0;
}

/* 绿色主题 */
body.theme-green {
    --primary-color: #43A047;
    --primary-dark: #2E7D32;
}

/* 橙色主题 */
body.theme-orange {
    --primary-color: #FB8C00;
    --primary-dark: #EF6C00;
}

/* 紫色主题 */
body.theme-purple {
    --primary-color: #8E24AA;
    --primary-dark: #6A1B9A;
}

/* 金色主题 */
body.theme-gold {
    --primary-color: #F57F17;
    --primary-dark: #FFA000;
}

/* 深灰主题 */
body.theme-dark {
    --primary-color: #455A64;
    --primary-dark: #263238;
}

/* 农业主题 */
body.theme-agriculture {
    --primary-color: #2E7D32;
    --primary-dark: #1B5E20;
    --gold-color: #827717;
}

/* 化工主题 */
body.theme-chemical {
    --primary-color: #0D47A1;
    --primary-dark: #0D47A1;
    --gold-color: #64B5F6;
}

/* 医疗主题 */
body.theme-medical {
    --primary-color: #0277BD;
    --primary-dark: #01579B;
    --gold-color: #B3E5FC;
}

/* 科技主题 */
body.theme-tech {
    --primary-color: #6A1B9A;
    --primary-dark: #4A148C;
    --gold-color: #E040FB;
}

/* 教育主题 */
body.theme-education {
    --primary-color: #0288D1;
    --primary-dark: #01579B;
    --gold-color: #FF7043;
}

/* 食品主题 */
body.theme-food {
    --primary-color: #C62828;
    --primary-dark: #B71C1C;
    --gold-color: #FFB300;
}

/* 服装主题 */
body.theme-fashion {
    --primary-color: #EC407A;
    --primary-dark: #C2185B;
    --gold-color: #F48FB1;
}

/* 房产主题 */
body.theme-realestate {
    --primary-color: #5D4037;
    --primary-dark: #3E2723;
    --gold-color: #A1887F;
}

/* 汽车主题 */
body.theme-auto {
    --primary-color: #212121;
    --primary-dark: #000000;
    --gold-color: #D32F2F;
}

/* 金融主题 */
body.theme-finance {
    --primary-color: #0D47A1;
    --primary-dark: #0D47A1;
    --gold-color: #F9A825;
}

/* 字体大小变量 */
body {
    --site-title-size: 18px;
    --site-title-family: 'Noto Serif SC', serif;
    --site-title-weight: normal;
    --site-title-color: #ffffff;
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

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

header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(183, 28, 28, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 10px;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

header .logo img {
    height: 50px;
    max-width: 120px;
    margin-right: 15px;
    vertical-align: middle;
}

header .logo .logo-text {
    font-family: 'Noto Serif SC', serif;
    font-size: 18px;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    vertical-align: middle;
    line-height: 50px;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: var(--gold-color);
}

header nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-color);
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=agricultural%20chemical%20professional%20factory%20modern%20industrial%20green%20fields%20high%20quality&image_size=landscape_16_9');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(183, 28, 28, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gold-color), var(--gold-light));
    color: var(--primary-dark);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

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

.section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 32px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--gold-color));
}

.features {
    padding: 80px 0;
    background: var(--bg-white);
}

.about-home {
    padding: 80px 0;
    background: var(--bg-light);
}

.about-home .about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-home .about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.about-home .about-content .btn {
    display: inline-block;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-gray);
    font-size: 14px;
}

.products-home {
    padding: 80px 0;
    background: var(--bg-light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-images {
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.product-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-light);
    font-size: 14px;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.product-info .category {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-info .description {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.contact-short {
    margin-bottom: 15px;
}

.contact-item {
    font-size: 14px;
    color: var(--text-gray);
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

.plans-home {
    padding: 80px 0;
    background: var(--bg-white);
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.plan-card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.plan-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.plan-content {
    padding: 25px;
}

.plan-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.plan-content p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 20px;
}

footer {
    background: var(--text-dark);
    color: #fff;
    padding: 60px 0;
}

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

.footer-left h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--gold-color);
}

.footer-left p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.8;
}

.footer-right h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--gold-color);
}

.contact-list p {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 10px;
}

.contact-list strong {
    color: #fff;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 14px;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 60px 0;
    color: #fff;
    text-align: center;
}

.page-header h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: 36px;
}

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

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-detail-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.product-detail-images img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.product-detail-info h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.product-detail-info .category-tag {
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
    display: inline-block;
}

.product-detail-info .description {
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-detail-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-dark);
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

.product-detail-info .specs,
.product-detail-info .usage {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: var(--text-gray);
}

.contact-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 40px;
    border-radius: 12px;
    color: #fff;
    margin-top: 30px;
}

.contact-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--gold-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.contact-box .icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.contact-box .label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.contact-box .value {
    font-size: 16px;
    font-weight: 600;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.plan-detail-container {
    max-width: 800px;
    margin: 0 auto;
}

.plan-detail-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
}

.plan-detail-container h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.plan-detail-container .content {
    color: var(--text-gray);
    line-height: 2;
    margin-bottom: 30px;
}

.contact-page-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.contact-info .contact-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
}

.contact-info .contact-box .icon {
    font-size: 32px;
    color: var(--primary-color);
}

.contact-info .contact-box .info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-info .contact-box .info p {
    color: var(--text-gray);
    font-size: 14px;
}

@media (max-width: 992px) {
    .feature-grid,
    .product-grid,
    .plan-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail-container {
        grid-template-columns: 1fr;
    }

    .contact-page-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }

    header .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    header .logo img {
        height: 45px;
        margin-right: 10px;
    }

    header .logo .logo-text .company-name {
        font-size: 16px !important;
    }

    header .logo .logo-text .company-english {
        font-size: 10px;
        display: none;
    }

    header .search-box {
        width: 100%;
        margin-top: 5px;
    }

    header .search-box input {
        width: 100%;
    }

    header nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    header nav ul li a {
        font-size: 14px;
        padding: 6px 10px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .feature-grid,
    .product-grid,
    .plan-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translateY(9px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-9px);
}

/* 移动端菜单展开状态 */
nav ul.mobile-menu-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-color);
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 灯箱样式 */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox.show {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* Toast提示样式 */
#toastContainer {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    max-width: 300px;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: rgba(76, 175, 80, 0.9);
}

.toast.error {
    background: rgba(244, 67, 54, 0.9);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 12px;
    width: 320px;
    text-align: center;
    position: relative;
    animation: scaleIn 0.3s ease;
}

.modal-content .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-content .close:hover {
    color: #333;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.qr-image {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.modal-content p {
    color: #666;
    font-size: 14px;
}

/* 联系弹窗样式 */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.contact-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-modal-content {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease;
}

.contact-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-modal-close:hover {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(90deg);
}

.contact-modal-title {
    text-align: center;
    font-size: 22px;
    color: var(--text-dark);
    margin: 0 0 8px 0;
}

.contact-modal-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    margin: 0 0 25px 0;
}

.contact-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.contact-modal-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.contact-modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.contact-modal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.contact-modal-card:hover::before {
    transform: scaleX(1);
}

.contact-modal-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(183, 28, 28, 0.1), rgba(183, 28, 28, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-modal-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contact-modal-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.contact-modal-value {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-modal-action {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    color: var(--primary-color);
    background: rgba(183, 28, 28, 0.1);
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.contact-modal-tip {
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* 响应式 */
@media (max-width: 480px) {
    .contact-modal-content {
        padding: 25px 20px;
    }
    
    .contact-modal-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-modal-title {
        font-size: 20px;
    }
}

/* 加载状态 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 图片懒加载占位 */
.lazy-image {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.lazy-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 搜索框样式 */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-box button {
    padding: 12px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* 排序选择 */
.sort-select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    margin-left: 10px;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 产品卡片增强 */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.product-card:hover::before {
    left: 100%;
}

/* Hero区域增强 */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(183, 28, 28, 0.3), transparent, rgba(183, 28, 28, 0.1));
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* 页面淡入动画 */
body {
    animation: pageFadeIn 0.5s ease;
}

@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Footer三栏布局 */
.footer-content {
    grid-template-columns: 1.2fr 1fr 1.5fr;
    gap: 40px;
}

.footer-section {
    padding: 0 15px;
}

.footer-logo {
    font-family: 'Noto Serif SC', serif;
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--gold-color);
    font-weight: 600;
}

.footer-desc {
    color: #aaa;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-item:hover {
    background: var(--gold-color);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--gold-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-links li a:hover {
    color: var(--gold-color);
    padding-left: 5px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #aaa;
    font-size: 14px;
    line-height: 1.5;
}

.contact-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-text {
    word-break: break-all;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    nav ul {
        display: none !important;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .search-box {
        flex-direction: column;
    }

    .sort-select {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* QQ弹窗样式 */
.qq-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.qq-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    max-width: 350px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease;
}

.qq-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.qq-close:hover {
    color: #333;
}

.qq-modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
}

.qq-qr {
    margin-bottom: 20px;
}

.qq-qr img {
    width: 180px;
    height: 180px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
}

.qq-qr p {
    margin-top: 10px;
    color: #666;
    font-size: 13px;
}

.qq-info {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.qq-info p {
    font-size: 15px;
    margin-bottom: 10px;
}

.qq-info strong {
    color: var(--primary-color);
    font-size: 18px;
    letter-spacing: 1px;
}

.qq-copy-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.qq-copy-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.qq-tips {
    background: #fff3cd;
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid #ffc107;
}

.qq-tips p {
    font-size: 12px;
    color: #856404;
    margin: 0;
}

/* 首页并排展示区 */
.showcase-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.showcase-item {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.showcase-header .section-title {
    margin: 0;
    font-size: 22px;
}

.showcase-more {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.showcase-more:hover {
    text-decoration: underline;
}

/* 迷你产品网格 */
.mini-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.mini-product-card {
    position: relative;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mini-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.mini-product-img {
    height: 120px;
    overflow: hidden;
    background: #eee;
}

.mini-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-product-info {
    padding: 12px;
}

.mini-product-info h4 {
    font-size: 14px;
    margin: 0 0 5px 0;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-product-info .price {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
}

.contact-btn-mini {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.contact-btn-mini:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.3);
}

.contact-btn-mini .contact-icon {
    font-size: 14px;
}

.mini-link {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.mini-product-card:hover .mini-link,
.mini-plan-card:hover .mini-link {
    opacity: 1;
}

/* 迷你方案网格 */
.mini-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.mini-plan-card {
    position: relative;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mini-plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.mini-plan-img {
    height: 100px;
    overflow: hidden;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-plan-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-plan-info {
    padding: 10px 12px;
}

.mini-plan-info h4 {
    font-size: 14px;
    margin: 0 0 5px 0;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-plan-info p {
    font-size: 12px;
    color: var(--text-gray);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 信息展示区 */
.info-section {
    padding: 40px 0;
    background: var(--bg-white);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.info-item {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 20px 25px;
}

.info-item .section-title {
    margin-bottom: 15px;
}

/* 带链接的标题栏 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header .section-title {
    margin-bottom: 0;
}

.section-header .showcase-more {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.section-header .showcase-more:hover {
    color: var(--primary-dark);
}

/* 公司动态列表 */
.news-list-home {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-item-link {
    display: flex;
    gap: 15px;
    padding: 12px;
    background: var(--bg-white);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    align-items: center;
}

.news-item-link:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.news-date-badge {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.news-day {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.news-month {
    font-size: 11px;
    opacity: 0.9;
    margin-top: 2px;
}

.news-info {
    flex: 1;
    min-width: 0;
}

.news-title-home {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-desc {
    font-size: 13px;
    color: var(--text-gray);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 紧凑版公司优势 */
.feature-grid-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.feature-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 5px;
    background: var(--bg-white);
    border-radius: 8px;
    transition: transform 0.3s;
}

.feature-compact:hover {
    transform: translateY(-3px);
}

.feature-compact .feature-icon {
    font-size: 22px;
    margin-bottom: 4px;
    line-height: 1;
}

.feature-compact h5 {
    font-size: 12px;
    margin: 0;
    color: var(--text-color);
    font-weight: 600;
}

/* 统计数据 */
.about-stats {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 24px;
    color: var(--primary-color);
}

.stat-item span {
    font-size: 12px;
    color: var(--text-gray);
}

/* 响应式 - 首页并排布局 */
@media (max-width: 992px) {
    .showcase-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-item-link {
        padding: 10px;
    }
    
    .news-date-badge {
        width: 45px;
        height: 45px;
    }
    
    .news-day {
        font-size: 18px;
    }
    
    .news-title-home {
        font-size: 14px;
    }
    
    .news-desc {
        font-size: 12px;
    }
}

/* 产品中心和方案咨询页 - 移动端优化 */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .plan-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-images,
    .no-image {
        height: 100px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-info h3 {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .product-info .category {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .product-info .description,
    .product-info .contact-short,
    .product-info .btn-outline {
        display: none;
    }
    
    .product-info .price {
        font-size: 14px !important;
        margin: 5px 0 !important;
    }
    
    .plan-card img {
        height: 100px;
    }
    
    .plan-content {
        padding: 12px;
    }
    
    .plan-content h3 {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .plan-content p {
        font-size: 12px;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .plan-content .btn-outline {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .mini-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .mini-product-img {
        height: 90px;
    }
    
    .mini-product-info h4 {
        font-size: 12px;
    }
    
    .mini-product-info .price {
        font-size: 12px;
    }
}
