/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding-top: 70px;
}

html {
    scroll-behavior: smooth;
}

/* 导航栏 */
.navbar {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.navbar h1 {
    font-size: 1.5rem;
    text-align: left;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #3498db;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
}

.footer p {
    margin: 0;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    width: 50px;
    height: 50px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #5568d3;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* 主容器 */
.main-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

/* 页面标题 */
.page-title {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    text-align: left;
}

.page-title h1 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-title p {
    color: #7f8c8d;
    font-size: 1rem;
}

/* 图标 */
.icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    fill: currentColor;
}

/* ===== 首页样式 ===== */

/* 轮播图 */
.banner-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.banner-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.banner-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-slide {
    position: absolute;
    width: 300px;
    height: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
}

.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.banner-slide.left {
    transform: translateX(-380px) scale(0.85);
    opacity: 0.5;
    z-index: 1;
}

.banner-slide.left:hover {
    opacity: 0.7;
    transform: translateX(-380px) scale(0.88);
}

.banner-slide.left::before {
    opacity: 1;
}

.banner-slide.center {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    cursor: default;
}

.banner-slide.right {
    transform: translateX(380px) scale(0.85);
    opacity: 0.5;
    z-index: 1;
}

.banner-slide.right:hover {
    opacity: 0.7;
    transform: translateX(380px) scale(0.88);
}

.banner-slide.right::before {
    opacity: 1;
}

.banner-slide.hidden-left {
    transform: translateX(-800px) scale(0.7);
    opacity: 0;
    z-index: 0;
}

.banner-slide.hidden-right {
    transform: translateX(800px) scale(0.7);
    opacity: 0;
    z-index: 0;
}

.banner-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    z-index: 2;
    position: relative;
}

.banner-subtitle {
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
    z-index: 2;
    position: relative;
}

.banner-image {
    width: 270px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    z-index: 2;
    position: relative;
}

.banner-dots {
    position: absolute;
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dot.active {
    background: #667eea;
    width: 30px;
    border-radius: 5px;
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(102, 126, 234, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.banner-arrow:hover {
    background: rgba(102, 126, 234, 1);
    transform: translateY(-50%) scale(1.1);
}

.banner-arrow-left {
    left: 1rem;
}

.banner-arrow-right {
    right: 1rem;
}

/* 公告滚动条 */
.notice-bar {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    padding: 0.8rem 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.notice-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.notice-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.notice-icon svg {
    width: 20px;
    height: 20px;
    fill: #d63031;
    animation: shake 1s infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

.notice-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 30px;
    line-height: 30px;
}

.notice-text {
    position: absolute;
    width: auto;
    top: 0;
    left: 0;
    color: #2d3436;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
}

.notice-text.active {
    visibility: visible;
    opacity: 1;
}

.notice-text.scroll-horizontal {
    animation: scroll-left 8s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% + 80vw));
    }
}

/* 通知卡片 */
.notice-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.06);
    border-left: 4px solid #e74c3c;
}

.notice-card h2 {
    color: #e74c3c;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: left;
}

.notice-card p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.8;
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.08);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 3px solid #f8f9fa;
}

.product-info {
    padding: 2rem;
}

.product-title {
    color: #e74c3c;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: left;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.product-description {
    color: #333;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

.product-specs {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.contact-info-item {
    flex: 1;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.8rem;
    border-radius: 8px;
    font-weight: bold;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
}

.contact-info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    opacity: 0.85;
}

.contact-info-item .contact-number:hover {
    text-decoration: underline;
    text-decoration-style: dotted;
}

.contact-info-item .contact-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.contact-info-item .contact-number {
    font-size: 0.9rem;
    opacity: 0.95;
    user-select: text;
    cursor: text;
}

.contact-info-item .icon {
    fill: white;
}

.contact-qq {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.contact-wechat {
    background: linear-gradient(135deg, #07c160 0%, #059a4d 100%);
}

.contact-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006ba3 100%);
}

/* ===== 联系页面样式 ===== */

.contact-section {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-button {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    background: white;
    border: 2px solid #e0e0e0;
    padding: 1.2rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-button-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.8rem;
}

.contact-button-icon svg {
    width: 100%;
    height: 100%;
}

.contact-button-title {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-button-value {
    font-size: 0.95rem;
    color: #7f8c8d;
}

.btn-qq {
    border-color: #12b7f5;
}

.btn-qq:hover {
    border-color: #0e8fc4;
    background: #f0f9ff;
}

.btn-qq .contact-button-icon svg {
    fill: #12b7f5;
}

.btn-wechat {
    border-color: #09bb07;
}

.btn-wechat:hover {
    border-color: #078d06;
    background: #f0fff0;
}

.btn-wechat .contact-button-icon svg {
    fill: #09bb07;
}

.btn-telegram {
    border-color: #0088cc;
}

.btn-telegram:hover {
    border-color: #006ba3;
    background: #f0f9ff;
}

.btn-telegram .contact-button-icon svg {
    fill: #0088cc;
}

/* ===== FAQ页面样式 ===== */

.faq-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

.faq-section h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.faq-content {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
}

.faq-content p {
    margin-bottom: 0.5rem;
}

.warning {
    color: #e74c3c;
    font-weight: 600;
}

/* ===== 响应式设计 ===== */

@media (max-width: 1024px) {
    .banner-carousel {
        height: 350px;
    }

    .banner-slide {
        width: 250px;
        height: 320px;
        padding: 1rem;
    }

    .banner-slide.left {
        transform: translateX(-300px) scale(0.85);
    }

    .banner-slide.right {
        transform: translateX(300px) scale(0.85);
    }

    .banner-image {
        width: 220px;
    }

    .banner-title {
        font-size: 1.3rem;
    }

    .banner-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .navbar h1 {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .banner-carousel {
        height: 320px;
    }

    .banner-slide {
        width: 220px;
        height: 300px;
        padding: 0.8rem;
    }

    .banner-slide.left,
    .banner-slide.right {
        opacity: 0.3;
        transform: translateX(-250px) scale(0.8);
    }

    .banner-slide.right {
        transform: translateX(250px) scale(0.8);
    }

    .banner-image {
        width: 180px;
    }

    .banner-title {
        font-size: 1.2rem;
    }

    .banner-subtitle {
        font-size: 0.85rem;
    }

    .banner-arrow {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 45px;
        height: 45px;
    }

    .page-title h1 {
        font-size: 1.5rem;
    }

    .faq-section h2 {
        font-size: 1.3rem;
    }

    .faq-content {
        font-size: 1rem;
    }

    .contact-section {
        padding: 2rem 1.5rem;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .contact-button {
        max-width: 100%;
    }
}
