/* 基础样式重置 */
* {
    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: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* 顶部信息栏 */
.top-bar {
    background: #1a1a2e;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

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

.top-info span {
    margin-right: 20px;
}

.top-info i {
    margin-right: 5px;
    color: #e94560;
}

.top-links a {
    color: #fff;
    transition: color 0.3s;
}

.top-links a:hover {
    color: #e94560;
}

/* 导航栏 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    font-size: 24px;
    color: #1a1a2e;
    font-weight: 700;
}

.nav ul {
    display: flex;
    gap: 40px;
}

.nav a {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: color 0.3s;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: #e94560;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e94560;
    transition: width 0.3s;
}

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

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Banner */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.banner-slider {
    position: relative;
    height: 100%;
    width: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.banner-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

/* Banner联系方式 */
.banner-contact {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    animation: fadeInUp 1s ease 0.4s both;
}

.contact-hotline,
.contact-mobile {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.contact-hotline:hover,
.contact-mobile:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.contact-hotline i,
.contact-mobile i {
    font-size: 28px;
    color: #e94560;
}

.hotline-info,
.mobile-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.hotline-label,
.mobile-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 3px;
}

.hotline-number,
.mobile-number {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: #e94560;
    color: #fff;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #c73e54;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: #e94560;
    border: 2px solid #e94560;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #e94560;
    color: #fff;
}

.btn-link {
    color: #e94560;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.btn-link:hover {
    gap: 10px;
}

/* 区块标题 */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #999;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* 公司简介 */
.about-section {
    padding: 100px 0;
    background: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    padding-right: 20px;
}

.about-text p {
    margin-bottom: 24px;
    color: #555;
    line-height: 2;
    font-size: 16px;
    text-align: justify;
}

.about-text .btn-secondary {
    margin-top: 20px;
    display: inline-block;
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 400px;
    max-height: 450px;
}

.placeholder-image {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: #999;
    border: 2px dashed #ddd;
}

.placeholder-image i {
    font-size: 80px;
    margin-bottom: 20px;
    color: #bbb;
}

.placeholder-image span {
    font-size: 18px;
    color: #999;
}

.placeholder-image.large {
    min-height: 400px;
}

/* 产品展示 */
.products-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
    height: 200px;
    overflow: hidden;
}

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

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.product-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* 产品分类 */
.categories-section {
    padding: 80px 0;
    background: #fff;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: #e94560;
    transform: translateY(-5px);
}

.category-image {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.category-icon-placeholder {
    width: 70px;
    height: 70px;
    background: #e94560;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon-placeholder i {
    font-size: 28px;
    color: #fff;
}

.category-icon {
    width: 70px;
    height: 70px;
    background: #e94560;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.category-icon i {
    font-size: 28px;
    color: #fff;
}

.category-card h3 {
    font-size: 16px;
    color: #333;
}

/* 新闻资讯 */
.news-section {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.news-item {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s;
}

.news-item:hover {
    box-shadow: 0 5px 25px rgba(0,0,0,0.12);
}

.news-date {
    background: #e94560;
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.news-date .day {
    font-size: 28px;
    font-weight: 700;
}

.news-date .month {
    font-size: 14px;
}

.news-content {
    padding: 20px;
    flex: 1;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-content h3 a:hover {
    color: #e94560;
}

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

/* 联系我们 */
.contact-section {
    padding: 80px 0;
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 24px;
    color: #e94560;
    width: 30px;
}

.contact-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #1a1a2e;
}

.contact-item p {
    color: #666;
}

.placeholder-map {
    background: #f0f0f0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #999;
}

.placeholder-map i {
    font-size: 60px;
    margin-bottom: 15px;
}

.placeholder-map.large {
    min-height: 400px;
}

/* 页脚 */
.footer {
    background: #1a1a2e;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

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

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

.footer-section ul li a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #e94560;
}

.footer-section i {
    margin-right: 10px;
    color: #e94560;
}

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

/* 页面标题 */
/* 页面头部轮播图 */
.page-header-banner {
    position: relative;
    height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header-banner .banner-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-header-banner .banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.page-header-banner .banner-slide.active {
    opacity: 1;
}

.page-header-banner .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-header-banner .container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.page-header-banner h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #aaa;
}

.breadcrumb a {
    color: #fff;
}

.breadcrumb a:hover {
    color: #e94560;
}

/* 产品列表页 */
.products-page {
    padding: 60px 0;
}

.products-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.sidebar-widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    color: #666;
    transition: all 0.3s;
}

.category-list a:hover,
.category-list a.active {
    background: #e94560;
    color: #fff;
}

.contact-widget p {
    margin-bottom: 10px;
    color: #666;
}

.contact-widget i {
    color: #e94560;
    margin-right: 10px;
}

/* 产品详情页 */
.product-detail {
    padding: 60px 0;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.product-image-large img {
    width: 100%;
    border-radius: 10px;
}

.product-info-detail h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.product-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.product-meta span {
    color: #666;
    font-size: 14px;
}

.product-description {
    margin-bottom: 30px;
}

.product-description h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.product-description p {
    color: #666;
    line-height: 1.8;
}

.product-contact {
    margin-bottom: 30px;
}

.product-contact h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.product-contact p {
    color: #666;
    margin-bottom: 10px;
}

.product-contact i {
    color: #e94560;
    margin-right: 10px;
}

.product-actions {
    display: flex;
    gap: 15px;
}

/* 关于我们页 */
.about-page {
    padding: 60px 0;
}

.about-content-full {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.about-content-full h2 {
    font-size: 24px;
    margin: 40px 0 20px;
    color: #1a1a2e;
}

.about-content-full h2:first-child {
    margin-top: 0;
}

.about-content-full p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.advantage-card {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: #e94560;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.advantage-icon i {
    font-size: 28px;
    color: #fff;
}

.advantage-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.advantage-card p {
    color: #666;
    font-size: 14px;
}

.contact-info-detail {
    margin-top: 30px;
}

.contact-row {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-row .label {
    width: 100px;
    font-weight: 500;
    color: #333;
}

.contact-row .value {
    color: #666;
}

/* 新闻列表页 */
.news-page {
    padding: 60px 0;
}

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

.news-card {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s;
}

.news-card:hover {
    box-shadow: 0 5px 25px rgba(0,0,0,0.12);
}

.news-date-box {
    background: #e94560;
    color: #fff;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.news-date-box .day {
    font-size: 32px;
    font-weight: 700;
}

.news-date-box .month {
    font-size: 14px;
}

.news-date-box .year {
    font-size: 12px;
    opacity: 0.8;
}

.news-content-box {
    padding: 25px;
    flex: 1;
}

.news-content-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.news-content-box h3 a:hover {
    color: #e94560;
}

.news-content-box p {
    color: #666;
    margin-bottom: 15px;
}

.read-more {
    color: #e94560;
    font-weight: 500;
}

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

/* 新闻详情页 */
.news-detail {
    padding: 60px 0;
}

.news-detail-content {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.news-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
    font-size: 14px;
}

.news-meta i {
    margin-right: 5px;
    color: #e94560;
}

.news-body {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.news-footer {
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

/* 联系页面 */
.contact-page {
    padding: 60px 0;
}

.contact-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-info-section h2,
.contact-map-section h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #1a1a2e;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.contact-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: #e94560;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.contact-icon i {
    font-size: 24px;
    color: #fff;
}

.contact-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.contact-card p {
    color: #666;
    font-size: 14px;
}

.map-container {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 20px;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content,
    .contact-grid,
    .products-layout,
    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

/* Banner轮播指示器 */
.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.banner-dots .dot.active {
    background: #e94560;
    width: 30px;
    border-radius: 6px;
}

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

@media (max-width: 768px) {
    .banner-content h2 {
        font-size: 28px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .banner-contact {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .contact-hotline,
    .contact-mobile {
        padding: 12px 20px;
    }

    .hotline-number,
    .mobile-number {
        font-size: 18px;
    }

    .section-header h2 {
        font-size: 28px;
    }

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

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

    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }

    /* 移动端公司简介优化 */
    .about-section {
        padding: 60px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text {
        padding-right: 0;
        order: 2;
    }

    .about-image {
        order: 1;
    }

    .about-image img {
        min-height: 280px;
        max-height: 320px;
    }

    .about-text p {
        font-size: 15px;
        line-height: 1.9;
        margin-bottom: 18px;
    }

    .placeholder-image {
        min-height: 280px;
    }
}

/* 图片放大弹窗 */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    cursor: zoom-out;
}

.image-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.image-lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
    z-index: 10000;
}

.lightbox-close:hover {
    opacity: 1;
}

/* 图片悬停效果 */
img:not(.no-zoom):not(.lightbox-img) {
    transition: transform 0.3s, box-shadow 0.3s;
}

img:not(.no-zoom):not(.lightbox-img):hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* 联系方式点击样式 */
.top-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.top-link:hover {
    color: #e94560;
}

.contact-link {
    color: #e94560;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.contact-link:hover {
    color: #c73e54;
    text-decoration: underline;
}

.contact-link-card {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    position: relative;
}

.contact-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.2);
    border-color: #e94560;
}

.call-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: #e94560;
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.contact-link-card:hover .call-btn {
    background: #c73e54;
    transform: scale(1.05);
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #e94560;
}

/* 联系我们页面样式 */
.contact-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-link-card .call-btn {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

.contact-link-card:hover .call-btn {
    opacity: 1;
    transform: translateY(0);
}

/* AI客服样式 */
#ai-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    border: 2px solid #007bff;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.4);
}

.chat-toggle i {
    font-size: 28px;
    color: #007bff;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: #ff4757;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.chat-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 500px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.chat-container.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px 15px 0 0;
}

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

.chat-title i {
    font-size: 20px;
}

.chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.chat-close:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease;
}

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

.message.ai {
    flex-direction: row;
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message.ai .message-avatar {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
}

.message.user .message-avatar {
    background: #1a1a2e;
    color: #fff;
}

.message-content {
    max-width: 70%;
}

.message-text {
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.message.ai .message-text {
    background: #fff;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 0 15px 15px 15px;
}

.message.user .message-text {
    background: linear-gradient(135deg, #e94560 0%, #c73e54 100%);
    color: #fff;
    border-radius: 15px 0 15px 15px;
}

.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
    text-align: right;
}

.message.ai .message-time {
    text-align: left;
}

.loading-dots {
    display: flex;
    gap: 5px;
    padding: 15px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.chat-input-area {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
    border-radius: 0 0 15px 15px;
}

.quick-replies {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.quick-btn {
    padding: 6px 12px;
    background: #f0f0f0;
    border: none;
    border-radius: 15px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-btn:hover {
    background: #e94560;
    color: #fff;
}

.input-wrapper {
    display: flex;
    gap: 10px;
}

#chatInput {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

#chatInput:focus {
    border-color: #e94560;
}

.send-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

@media (max-width: 480px) {
    #ai-chat-widget {
        bottom: 20px;
        right: 20px;
    }

    .chat-container {
        width: calc(100vw - 40px);
        right: -10px;
        height: 70vh;
    }

    /* 顶部信息栏 */
    .top-bar {
        padding: 8px 0;
    }

    .top-info {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .top-link {
        font-size: 12px;
    }

    /* 导航栏 */
    .header {
        padding: 10px 0;
    }

    .logo h1 {
        font-size: 16px;
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        display: none;
        z-index: 1000;
    }

    .nav ul.active {
        display: flex;
    }

    .nav ul li a {
        padding: 12px 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    .mobile-menu-toggle {
        display: block;
        font-size: 24px;
        padding: 5px;
    }

    /* Banner */
    .banner {
        height: 250px;
    }

    .banner-content {
        padding: 0 20px;
    }

    .banner-content h2 {
        font-size: 24px !important;
    }

    .banner-content p {
        font-size: 14px !important;
        display: none;
    }

    .banner-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* 分类网格 */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        padding: 0 10px;
    }

    .category-card {
        padding: 15px 10px;
    }

    .category-image {
        height: 80px;
    }

    .category-card h3 {
        font-size: 12px;
    }

    /* 产品网格 */
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
        padding: 0 10px;
    }

    .product-card {
        margin-bottom: 0;
    }

    /* 新闻列表 */
    .news-list {
        padding: 0 10px;
    }

    .news-item {
        flex-direction: column;
    }

    .news-image {
        width: 100%;
        height: 150px;
    }

    .news-content {
        padding: 15px;
    }

    /* 页脚 */
    .footer-content {
        grid-template-columns: 1fr !important;
        padding: 20px 15px;
    }

    .footer-section {
        margin-bottom: 20px;
    }

    /* 关于页面 */
    .about-hero {
        height: 200px;
    }

    .about-hero-content h2 {
        font-size: 24px;
    }

    .about-section {
        padding: 30px 15px;
    }

    /* 联系页面 */
    .contact-wrapper {
        padding: 20px 15px;
    }

    .contact-info {
        padding: 20px 15px;
    }

    /* FAQ页面 */
    .faq-search {
        padding: 15px;
    }

    .faq-categories {
        flex-wrap: wrap;
        gap: 8px;
        padding: 0 15px;
    }

    .cat-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .faq-item {
        margin: 0 15px 10px;
    }

    /* 产品详情页 */
    .product-detail-layout {
        padding: 15px;
    }

    .product-gallery {
        margin-bottom: 20px;
    }

    /* 分页 */
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }

    .pagination a,
    .pagination span {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* 联系CTA */
    .faq-cta {
        padding: 30px 15px;
    }

    .faq-cta h3 {
        font-size: 20px;
    }

    .faq-cta .btn-primary,
    .faq-cta .btn-secondary {
        display: block;
        width: 100%;
        margin: 10px 0;
        text-align: center;
    }
}
