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

:root {
    --primary-color: #dc2626;
    --secondary-color: #991b1b;
    --accent-color: #f59e0b;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #fef2f2;
    --white: #ffffff;
    --border-color: #fecaca;
    --shadow: 0 4px 20px rgba(220, 38, 38, 0.15);
    --shadow-hover: 0 8px 30px rgba(220, 38, 38, 0.25);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--bg-color);
}

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

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

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

.top-bar {
    background: var(--white);
    color: var(--text-color);
    padding: 8px 0;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.top-bar-phone {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-icon {
    font-size: 16px;
}

.top-bar-text {
    color: var(--text-light);
}

.top-bar-value a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.top-bar-value a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

/* Logo图片样式限制 */
.logo-image {
    max-width: 200px;
    max-height: 60px;
    width: auto;
    height: auto;
    display: block;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 20px;
}

.nav {
    display: flex;
    gap: 5px;
}

.nav a {
    display: inline-block;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav a:hover,
.nav a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.nav a:hover::after,
.nav a.active::after {
    width: 80%;
}

.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main {
    padding: 40px 0;
    min-height: 600px;
}

.content {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.main-content {
    flex: 1;
    padding: 30px;
}

.content-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    background-size: 200px;
    opacity: 0.5;
}

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

.banner h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.banner p {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 30px;
}

.banner-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-color);
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
    transition: var(--transition);
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
    background: #ffaa00;
}

.banner-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 60px 30px;
    margin-bottom: 30px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.banner-section h2 {
    font-size: 32px;
    color: var(--white);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.banner-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.banner-section::before {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.banner-section::after {
    content: '';
    position: absolute;
    right: 100px;
    bottom: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px 0;
}

.feature-item {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 15px;
    color: var(--white);
}

.feature-item h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

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

.service-card-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--white);
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 统一图片容器样式 */
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.image-container:hover img {
    transform: scale(1.05);
}

/* 统一缩略图样式 */
.thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.thumbnail:hover img {
    transform: scale(1.1);
}

/* 列表页内容样式 */
.content-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.content-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.content-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.content-cover {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.content-item:hover .content-cover img {
    transform: scale(1.05);
}

.content-cover.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--primary-color);
    opacity: 0.5;
}

.content-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.content-title a:hover {
    color: var(--primary-color);
}

.content-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.content-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-meta {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-light);
}

.meta-date {
    display: inline-block;
    padding: 2px 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

/* 无内容提示 */
.no-content {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.no-content p {
    font-size: 16px;
    color: var(--text-light);
    margin: 0;
}

.service-card-content {
    padding: 20px;
}

.service-card-title {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.service-card-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.news-item-image {
    width: 120px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--white);
    flex-shrink: 0;
}

.news-item-content {
    flex: 1;
}

.news-item-title {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.news-item-title:hover {
    color: var(--primary-color);
}

.news-item-meta {
    font-size: 13px;
    color: var(--text-light);
}

.news-item-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 8px;
    line-height: 1.6;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    color: var(--white);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 30px;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--primary-color);
    font-weight: 500;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.category-item:hover {
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.category-item-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
    flex-shrink: 0;
}

.category-item-content {
    flex: 1;
}

.category-item-title {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.category-item-desc {
    font-size: 14px;
    color: var(--text-light);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px 0;
    flex-wrap: wrap;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination a.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination a.disabled {
    background: #f5f5f5;
    color: #999;
    border-color: #e0e0e0;
    cursor: not-allowed;
}

.pagination a.disabled:hover {
    transform: none;
    background: #f5f5f5;
    color: #999;
    border-color: #e0e0e0;
}

.article-detail {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.article-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.article-meta span {
    color: var(--text-light);
    font-size: 14px;
}

.article-cover {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-cover img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.article-image {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-image img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    padding: 0 10px;
}

.article-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.article-content h2, .article-content h3, .article-content h4 {
    color: var(--primary-color);
    margin: 25px 0 15px 0;
}

.product-info-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
    align-items: start;
}

@media (max-width: 768px) {
    .product-info-layout {
        grid-template-columns: 1fr;
    }
}

.product-image-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-info-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.product-specs h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.specs-content {
    background: var(--white);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--border-color);
}

.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gallery-main {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.gallery-main img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.gallery-thumb {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: var(--white);
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.gallery-thumb:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.gallery-thumb.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.article-nav a {
    flex: 1;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.article-nav a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

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

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.footer {
    background: var(--white);
    padding: 30px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-light);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer p {
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
}

.banner-carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 500px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 40px 20px 20px;
    z-index: 3;
    font-size: 18px;
    text-align: center;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

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

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.news-section {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    padding: 40px 0;
    margin: 30px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.news-section .news-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.news-section .news-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 0 auto;
}

.news-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.news-item .news-cover {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-item .news-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.news-item:hover .news-cover img {
    transform: scale(1.05);
}

.news-item .news-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.news-item .news-item-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item .news-item-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.news-item .news-item-title a:hover {
    color: var(--primary-color);
}

.news-item .news-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item .news-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-top: auto;
}

.no-news {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 16px;
}

.no-service {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 16px;
}

.service-section {
    padding: 40px 0;
    margin: 30px 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

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

.service-section .service-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.service-section .service-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.service-cover {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.service-item:hover .service-cover img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
}

.service-item-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-item-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.service-item-title a:hover {
    color: var(--primary-color);
}

.service-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-link {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.service-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.sitemap-section {
    margin-bottom: 30px;
}

.sitemap-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.sitemap-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
}

.sitemap-links a {
    color: var(--text-color);
    padding: 8px 15px;
    background: #fff5f5;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    transition: var(--transition);
}

.sitemap-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.sitemap-category-link {
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    color: var(--white) !important;
    border-color: var(--primary-color) !important;
}

@media (max-width: 992px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav a {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .features-grid,
    .service-grid,
    .stats-section {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-item-image {
        width: 100%;
        height: 180px;
    }
    
    .article-nav {
        flex-direction: column;
    }
}

/* 悬浮联系方式 - 电脑端 */
.floating-contact {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
}

.floating-btn {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 8px;
    width: 70px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
    transition: all 0.3s ease;
    border: 3px solid white;
}

.floating-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.5);
}

.floating-icon {
    font-size: 32px;
    color: white;
    margin-bottom: 5px;
}

.floating-label {
    font-size: 12px;
    color: white;
    font-weight: 500;
    text-align: center;
}

.floating-content {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    border: 3px solid var(--primary-color);
}

.floating-btn:hover .floating-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.floating-content::before {
    content: '';
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: var(--primary-color);
}

.floating-content::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: white;
}

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

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-value a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: var(--secondary-color);
}

.qr-code .qr-placeholder {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.qr-code .qr-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.qr-code .qr-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.qr-code .qr-small {
    font-size: 12px;
    color: var(--text-light);
}

/* 微信二维码图片样式 */
.qrcode-img {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.qr-code .qr-img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 手机端联系方式 */
.mobile-contact {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9998;
    padding: 10px 20px;
    gap: 10px;
}

@media (min-width: 993px) {
    .mobile-contact {
        display: none !important;
    }
    
    .mobile-qr-popup:not(.active) {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .mobile-contact {
        display: flex;
    }
    
    .floating-contact {
        display: none;
    }
    
    .top-bar .container {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 6px 0;
        font-size: 13px;
    }
    
    .top-bar-icon {
        font-size: 14px;
    }
}

.mobile-phone-btn,
.mobile-qr-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-phone-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.mobile-phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.mobile-qr-btn {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.mobile-qr-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.mobile-icon {
    font-size: 20px;
}

.mobile-text {
    font-size: 15px;
}

/* 简洁城市导航样式 - 类似友情链接 */
.simple-city-nav-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.simple-city-nav-section .city-nav-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 15px;
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
}

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

.simple-city-nav-section .city-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    max-width: 100%;
    margin: 0;
    padding: 8px 0;
}

.simple-city-nav-section .city-link {
    display: inline-block;
    padding: 4px 12px;
    background: var(--white);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    line-height: 1.3;
}

.simple-city-nav-section .city-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.1), transparent);
    transition: left 0.5s;
}

.simple-city-nav-section .city-link:hover::before {
    left: 100%;
}

.simple-city-nav-section .city-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.simple-city-nav-section .city-link.text-link {
    background: linear-gradient(135deg, var(--white), #fafbfc);
}

.simple-city-nav-section .city-link.text-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* 友情链接样式 */
.friendship-links-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.friendship-links-section .friend-links-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 15px;
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
}

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

.friendship-links-section .links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    max-width: 100%;
    margin: 0;
    padding: 8px 0;
}

.friendship-links-section .friend-link {
    display: inline-block;
    padding: 4px 12px;
    background: var(--white);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    line-height: 1.3;
}

.friendship-links-section .friend-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.1), transparent);
    transition: left 0.5s;
}

.friendship-links-section .friend-link:hover::before {
    left: 100%;
}

.friendship-links-section .friend-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.friendship-links-section .friend-link.text-link {
    background: linear-gradient(135deg, var(--white), #fafbfc);
}

.friendship-links-section .friend-link.text-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

.simple-city-nav-section .city-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 手机端二维码弹窗 */
.mobile-qr-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mobile-qr-popup.active {
    display: flex !important;
}

.mobile-qr-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    max-width: 320px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qr-placeholder-large {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px 20px;
    margin-bottom: 20px;
}

.qr-placeholder-large .qr-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.qr-placeholder-large .qr-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.qr-placeholder-large .qr-small {
    font-size: 14px;
    color: var(--text-light);
}

.mobile-qr-content .qr-img {
    max-width: 250px;
    max-height: 250px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.close-qr-btn {
    width: 100%;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-qr-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

@media (max-width: 480px) {
    .mobile-contact {
        padding: 8px 15px;
    }
    
    .mobile-phone-btn,
    .mobile-qr-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .mobile-text {
        font-size: 14px;
    }
}

/* 底部联系方式样式 */
.footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.footer-icon {
    font-size: 24px;
}

.footer-text {
    color: var(--primary-color);
}

.footer-text a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qr-wrapper {
    width: 80px;
    height: 80px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: white;
}

.footer-qr-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-placeholder-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.qr-icon-small {
    font-size: 32px;
}

.footer-qr-label {
    font-size: 12px;
    color: var(--text-color);
    font-weight: 500;
}

.footer-copyright {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
}

/* 底部联系方式响应式适配 */
@media (max-width: 768px) {
    .footer-contact {
        gap: 30px;
    }
    
    .qr-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .footer-phone {
        font-size: 14px;
    }
    
    .footer-icon {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .footer-contact {
        gap: 20px;
        flex-direction: column;
    }
    
    .qr-wrapper {
        width: 60px;
        height: 60px;
    }
}
