:root {
    --primary-color: #1a2b4d;
    --primary-dark: #0f1929;
    --primary-light: #2d3f5f;
    --accent-color: #4a90e2;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #ffffff;
    --bg-light: #f5f7fa;
    --border-color: #e1e8ed;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* 导航栏 */
.navbar {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

/* 管理员登录按钮 */
.admin-login-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(26, 43, 77, 0.2);
    border: none;
    cursor: pointer;
}

.admin-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 43, 77, 0.3);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.admin-login-btn:active {
    transform: translateY(0);
}

.admin-login-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 3D旋转木马轮播图 */
.carousel-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

.carousel-3d-wrapper {
    perspective: 1500px;
    perspective-origin: center center;
    width: 100%;
    height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-3d-stage {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-3d-item {
    position: absolute;
    width: 600px;
    height: 450px;
    left: 50%;
    top: 50%;
    margin-left: -300px;
    margin-top: -225px;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 1s ease, z-index 0s linear 0.5s;
    opacity: 0.6;
    z-index: 1;
}

.carousel-3d-item.active {
    opacity: 1;
    z-index: 10;
    transform: translateZ(0) scale(1);
}

.carousel-3d-item.prev-2 {
    transform: translateZ(-300px) translateX(-550px) rotateY(45deg) scale(0.7);
    opacity: 0.4;
}

.carousel-3d-item.prev-1 {
    transform: translateZ(-150px) translateX(-300px) rotateY(25deg) scale(0.85);
    opacity: 0.5;
}

.carousel-3d-item.next-1 {
    transform: translateZ(-150px) translateX(300px) rotateY(-25deg) scale(0.85);
    opacity: 0.5;
}

.carousel-3d-item.next-2 {
    transform: translateZ(-300px) translateX(550px) rotateY(-45deg) scale(0.7);
    opacity: 0.4;
}

.carousel-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    border: 3px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
}

.carousel-3d-item.active .carousel-placeholder {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
}

.carousel-3d-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background-color: white;
    width: 32px;
    border-radius: 6px;
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* 轮播图右侧立即咨询按钮 */
.carousel-consult-btn {
    position: absolute;
    right: 40px;
    bottom: 80px;
    padding: 0.9rem 1.8rem;
    background-color: #ffffff;
    color: var(--primary-color);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
    z-index: 15;
}

.carousel-consult-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.carousel-consult-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* Hero区域 */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/landscape.jpg') center/cover;
    opacity: 0.1;
    z-index: 0;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    cursor: pointer;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: #357abd;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

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

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.page-header-tags {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.tag-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag-icon {
    width: 20px;
    height: 20px;
}

.tag-icon svg {
    width: 100%;
    height: 100%;
}

.tag-separator {
    opacity: 0.5;
}

/* 章节标题 */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1rem;
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-philosophy {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
}

.about-philosophy h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 业务范围 */
.business {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.business-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.business-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.business-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 产品服务 */
.products {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* 让产品服务下每个系列卡片高度一致 */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--bg-light);
    flex-shrink: 0;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
}

.product-details {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-details h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-desc {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.spec-tag {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.product-application {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
    padding: 0.55rem 1.4rem;
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    width: fit-content;
    margin-top: auto; /* 按钮固定在卡片底部，保证整体高度一致 */
}

.product-link-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.product-link-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 服务流程 */
.service-process {
    margin-top: 4rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.process-step {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.process-step h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 优势品牌 */
.brands {
    padding: 80px 0;
    background-color: var(--bg-color);
}

/* 大品牌区域（上层） */
.brands-large-wrapper {
    margin-bottom: 90px; /* 留出上下层间距 */
}

.brands-large-grid {
    display: flex;
    flex-wrap: nowrap; /* 默认电脑端一行排满 5 个 */
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    width: 100%;
}

.brand-item-large {
    text-align: center;
    background-color: white;
    padding: 2rem 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 0 calc((100% - 8rem) / 5); /* 明确平均分成 5 份 */
    max-width: calc((100% - 8rem) / 5);
    min-height: 160px;
    aspect-ratio: 3.5 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-item-large:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.brand-logo-large {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem; /* 缩小内边距，让图片尽量占满卡片 */
    overflow: hidden;
}

.brand-logo-large img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 大品牌图片统一尺寸（尽量放大到容器大小） */
.brand-item-large .brand-logo-large img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 小品牌区域（下层） */
.brands-small-wrapper {
    margin-top: 0;
}

.brands-small-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)); /* 电脑端强制 5 列，10 个自动分成上下两排 */
    gap: 1.5rem;
    justify-items: center;
    width: 100%;
}

.brand-item-small {
    text-align: center;
    background-color: white;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    min-height: 76px;
    aspect-ratio: 2.6 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-item-small:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.brand-logo-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem; /* 缩小内边距，让图片尽量占满小卡片 */
    overflow: hidden;
}

.brand-logo-small img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 小品牌图片统一尺寸（相对卡片尽量放大） */
.brand-item-small .brand-logo-small img {
    width: 95%;
    height: 95%;
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

.brand-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 荣誉资质 */
.honors {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.honors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.honor-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.honor-item:hover {
    transform: translateY(-5px);
}

.honor-placeholder {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 联系我们 */
.contact {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: var(--bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--text-light);
}

.phone-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.call-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.call-button:hover {
    background-color: #357abd;
}

.call-button svg {
    width: 16px;
    height: 16px;
}

/* 表单 */
.contact-form {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.required-star {
    color: red;
    margin-left: 0.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
}

/* 表单消息提示 */
.form-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: slideDown 0.3s ease;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 提交按钮禁用状态 */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 地图部分 */
.map-section {
    margin-top: 4rem;
}

.map-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-wrapper {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-info h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.map-info p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.map-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.map-link {
    display: inline-block;
    padding: 0.75rem 1rem;
    background-color: var(--bg-light);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.map-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 产品详情页面布局 */
.product-detail-layout {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.product-detail-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: start;
}

/* 左侧品牌目录 */
.product-detail-sidebar {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* 自定义滚动条样式 */
.product-detail-sidebar::-webkit-scrollbar {
    width: 8px;
}

.product-detail-sidebar::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.product-detail-sidebar::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.3);
    border-radius: 4px;
}

.product-detail-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(128, 128, 128, 0.5);
}

.product-detail-sidebar h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.brand-catalog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.brand-catalog-list li {
    margin-bottom: 0.75rem;
}

.brand-catalog-item {
    display: block;
    padding: 0.75rem 1rem;
    background-color: var(--bg-light);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    min-height: 2.5rem;
}

.brand-catalog-item:hover {
    background-color: var(--primary-color);
    color: white;
    border-left-color: var(--accent-color);
    transform: translateX(5px);
}

.brand-catalog-item.active {
    background-color: var(--primary-color);
    color: white;
    border-left-color: var(--accent-color);
}

/* 右侧产品展示区域 */
.product-detail-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.product-showcase-card {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}


.product-showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-showcase-image {
    width: 100%;
    height: 100%;
}

.product-image-wrapper {
    width: 100%;
    height: 400px;
    background-color: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid var(--border-color);
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.product-image-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-light);
    font-size: 1rem;
    text-align: center;
    opacity: 0.6;
}

.product-image-wrapper img[src] {
    display: block;
}

.product-image-wrapper img[src] ~ .product-image-placeholder,
.product-image-wrapper:has(img:not([onerror])) .product-image-placeholder {
    display: none;
}

.product-showcase-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-showcase-text h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.product-description {
    color: var(--text-light);
    line-height: 1.8;
}

.product-description p {
    margin-bottom: 0.75rem;
}

/* 返回按钮 */
.product-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    margin-bottom: 1rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.product-back-btn:hover {
    opacity: 1;
}

.product-back-btn svg {
    width: 20px;
    height: 20px;
}

/* 右上角返回按钮 */
.product-back-btn-top-right {
    position: absolute;
    top: 0;
    right: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 10;
    gap: 6px;
    padding: 0 12px;
}

.product-back-btn-top-right:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.product-back-btn-top-right span {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.product-back-btn-top-right svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* 新闻资讯 */
.news {
    padding: 80px 0;
    background-color: var(--bg-color);
}

/* 新闻分类筛选按键 */
.news-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 15px;
}

.news-filter {
    padding: 0.75rem 1.5rem;
    background-color: white;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.news-filter:hover::before {
    left: 100%;
}

.news-filter:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 43, 77, 0.15);
}

.news-filter.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(26, 43, 77, 0.3);
    transform: translateY(-2px);
}

.news-filter.active:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    box-shadow: 0 6px 20px rgba(26, 43, 77, 0.4);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.news-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.news-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.news-link:hover {
    gap: 1rem;
}

.news-link svg {
    width: 20px;
    height: 20px;
}

.news-load-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.news-load-more:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.news-load-more svg {
    width: 20px;
    height: 20px;
}

/* 页脚 */
.footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
    }

    /* 移动端管理员登录按钮样式 */
    .nav-menu li .admin-login-btn {
        width: calc(100% - 2rem);
        margin: 0 1rem;
        justify-content: center;
        padding: 0.75rem 1.5rem;
    }

    .carousel-3d-wrapper {
        height: 400px;
        perspective: 800px;
    }
    
    .carousel-3d-item {
        width: 400px;
        height: 300px;
        margin-left: -200px;
        margin-top: -150px;
    }
    
    .carousel-3d-item.prev-2 {
        transform: translateZ(-200px) translateX(-350px) rotateY(45deg) scale(0.6);
    }
    
    .carousel-3d-item.prev-1 {
        transform: translateZ(-100px) translateX(-200px) rotateY(25deg) scale(0.75);
    }
    
    .carousel-3d-item.next-1 {
        transform: translateZ(-100px) translateX(200px) rotateY(-25deg) scale(0.75);
    }
    
    .carousel-3d-item.next-2 {
        transform: translateZ(-200px) translateX(350px) rotateY(-45deg) scale(0.6);
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-section {
        padding: 40px 0;
    }

    .carousel-consult-btn {
        right: 20px;
        bottom: 70px;
        padding: 0.7rem 1.4rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-detail-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .brand-catalog-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .brand-catalog-list li {
        margin-bottom: 0;
        flex: 1;
        min-width: 120px;
    }
    
    .product-showcase-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-image-wrapper {
        height: 300px;
    }

    .product-back-btn-top-right {
        width: 70px;
        height: 32px;
        right: 15px;
        padding: 0 10px;
        gap: 4px;
    }
    
    .product-back-btn-top-right span {
        font-size: 12px;
    }
    
    .product-back-btn-top-right svg {
        width: 14px;
        height: 14px;
    }

    /* 中等屏幕下，允许大品牌适当换行，但仍然偏向水平排列 */
    .brands-large-wrapper {
        margin-bottom: 70px;
    }
    
    .brands-large-grid {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .brand-item-large {
        flex: 0 0 calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
        padding: 1.6rem 2rem;
        min-height: 140px;
    }
    
    .brands-small-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)); /* 平板上每行 3 个，自动多行 */
        gap: 1.2rem;
    }
    
    .brand-item-small {
        padding: 0.6rem 0.8rem;
        min-height: 70px;
    }

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

    .news-categories {
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .news-filter {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .business-grid {
        grid-template-columns: 1fr;
    }

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

    .map-wrapper {
        height: 300px;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .page-header-tags {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tag-separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .carousel-3d-wrapper {
        height: 350px;
        perspective: 600px;
    }
    
    .carousel-3d-item {
        width: 320px;
        height: 240px;
        margin-left: -160px;
        margin-top: -120px;
    }
    
    .carousel-3d-item.prev-2 {
        transform: translateZ(-150px) translateX(-280px) rotateY(45deg) scale(0.5);
    }
    
    .carousel-3d-item.prev-1 {
        transform: translateZ(-80px) translateX(-160px) rotateY(25deg) scale(0.65);
    }
    
    .carousel-3d-item.next-1 {
        transform: translateZ(-80px) translateX(160px) rotateY(-25deg) scale(0.65);
    }
    
    .carousel-3d-item.next-2 {
        transform: translateZ(-150px) translateX(280px) rotateY(-45deg) scale(0.5);
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
    
    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .carousel-section {
        padding: 30px 0;
    }

    .carousel-consult-btn {
        right: 50%;
        transform: translateX(50%);
        bottom: 20px;
        padding: 0.6rem 1.3rem;
        font-size: 0.9rem;
    }

    /* 小屏幕管理员登录按钮样式 */
    .nav-menu li .admin-login-btn {
        font-size: 0.85rem;
        padding: 0.7rem 1.2rem;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .indicator.active {
        width: 24px;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .product-back-btn-top-right {
        width: 60px;
        height: 28px;
        right: 10px;
        top: -10px;
        padding: 0 8px;
        gap: 3px;
    }
    
    .product-back-btn-top-right span {
        font-size: 11px;
    }
    
    .product-back-btn-top-right svg {
        width: 12px;
        height: 12px;
    }
    
    .news-categories {
        gap: 0.5rem;
        padding: 0.8rem;
    }
    
    .news-filter {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        border-radius: 20px;
    }
    
    /* 超小屏仍然允许品牌区域自适应堆叠 */
    .brands-large-wrapper {
        margin-bottom: 50px;
    }
    
    .brands-large-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .brand-item-large {
        width: 100%;
        padding: 1.2rem 1.5rem;
        min-height: 120px;
    }
    
    .brands-small-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* 手机上一行 2 个 */
        gap: 1rem;
        justify-items: center;
    }
    
    .brand-item-small {
        padding: 0.6rem 0.8rem;
        min-height: 70px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .news-layout {
        grid-template-columns: 1fr;
    }

    .news-publish-section {
        margin-top: 2rem;
        position: static;
    }
}

/* 新闻发布功能样式 */
.news-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.news-list-section {
    min-width: 0;
}

.news-publish-section {
    position: sticky;
    top: 100px;
}

.publish-panel {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.publish-panel h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.login-prompt {
    text-align: center;
    padding: 2rem;
}

.login-prompt p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.publish-form .form-group {
    margin-bottom: 1.5rem;
}

.publish-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.publish-form .required {
    color: #dc3545;
}

.publish-form input[type="text"],
.publish-form input[type="datetime-local"],
.publish-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.publish-form input:focus,
.publish-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.category-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-checkboxes label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.category-checkboxes input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.markdown-editor-container {
    border: 2px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.markdown-tabs {
    display: flex;
    background-color: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-light);
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--primary-color);
    background-color: rgba(74, 144, 226, 0.1);
}

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

.markdown-content {
    position: relative;
}

.markdown-editor {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    border: none;
    resize: vertical;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.markdown-preview {
    display: none;
    padding: 1rem;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    background-color: white;
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3 {
    color: var(--primary-color);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.markdown-preview h1 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.markdown-preview h2 {
    font-size: 1.5rem;
}

.markdown-preview h3 {
    font-size: 1.2rem;
}

.markdown-preview p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.markdown-preview ul,
.markdown-preview ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.markdown-preview li {
    margin-bottom: 0.5rem;
}

.markdown-preview code {
    background-color: var(--bg-light);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

.markdown-preview pre {
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.markdown-preview pre code {
    background: none;
    padding: 0;
}

.markdown-preview blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    margin-left: 0;
    color: var(--text-light);
    font-style: italic;
}

.markdown-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1rem 0;
}

.markdown-preview a {
    color: var(--accent-color);
    text-decoration: none;
}

.markdown-preview a:hover {
    text-decoration: underline;
}

.markdown-preview hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 1.5rem 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions .btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-actions .btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.form-actions .btn-primary:hover:not(:disabled) {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 43, 77, 0.3);
}

.form-actions .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-actions .btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.form-actions .btn-secondary:hover {
    background-color: var(--border-color);
}

.form-message {
    display: none;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
