/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a5f;
    --primary-light: #2d5a87;
    --secondary-color: #c9a227;
    --text-dark: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg-light: #f5f7fa;
    --bg-white: #fff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部信息栏 */
.top-bar {
    background: var(--primary-color);
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

.top-info {
    display: flex;
    gap: 30px;
    justify-content: flex-end;
}

/* 导航栏 */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 32px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Hero 区域 */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
}

.slide {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.slide-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-features {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    padding: 30px 0;
    z-index: 3;
}

.hero-features .container {
    display: flex;
    justify-content: space-around;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    font-size: 32px;
}

.feature-text h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 3px;
}

.feature-text p {
    font-size: 13px;
    color: var(--text-light);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--secondary-color);
    color: #fff;
}

.btn-primary:hover {
    background: #b8941f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-full {
    width: 100%;
}

/* 通用区域样式 */
.section {
    padding: 80px 0;
}

.bg-light {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 32px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 3px;
}

.title-line {
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 15px auto 0;
}

/* 关于我们 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-main {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.img-placeholder {
    background: linear-gradient(135deg, #e0e0e0 0%, #f0f0f0 100%);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--secondary-color);
    color: #fff;
    padding: 25px 35px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-hover);
}

.experience-badge .years {
    display: block;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 14px;
}

.about-right h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-desc {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    gap: 40px;
    margin: 30px 0;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 8px;
}

.highlight-item {
    text-align: center;
}

.highlight-num {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
}

.highlight-text {
    font-size: 13px;
    color: var(--text-light);
}

/* 产品中心 */
.product-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cat-btn {
    padding: 10px 25px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-light);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.cat-btn:hover,
.cat-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-img .img-placeholder {
    height: 100%;
    background: linear-gradient(135deg, #d0d0d0 0%, #e8e8e8 100%);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.product-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

/* 解决方案 */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.solution-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.solution-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.solution-card h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.solution-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.solution-card ul {
    list-style: none;
    text-align: left;
}

.solution-card li {
    font-size: 13px;
    color: var(--text-muted);
    padding: 5px 0;
    padding-left: 15px;
    position: relative;
}

.solution-card li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* 应用案例 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.case-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.case-img {
    height: 200px;
}

.case-img .img-placeholder {
    height: 100%;
    background: linear-gradient(135deg, #c0c0c0 0%, #d8d8d8 100%);
}

/* 案例轮播图 */
.case-slider {
    position: relative;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slider-img.active {
    opacity: 1;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background: #fff;
}

.case-content {
    padding: 25px;
}

.case-tag {
    display: inline-block;
    background: var(--primary-light);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 12px;
}

.case-content h3 {
    font-size: 17px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.case-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* 视频中心 */
.videos-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-player-container {
    position: relative;
    background: #000;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.video-player-container video {
    width: 100%;
    height: 350px;
    display: block;
}

.video-thumbnail {
    position: relative;
    height: 350px;
    cursor: pointer;
}

.video-thumbnail .img-placeholder {
    height: 100%;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: rgba(255,255,255,0.5);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.play-btn span {
    font-size: 28px;
    color: var(--primary-color);
    margin-left: 5px;
}

.video-thumbnail:hover .play-btn {
    background: var(--secondary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-thumbnail:hover .play-btn span {
    color: #fff;
}

.video-info {
    padding: 25px;
}

.video-info h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.video-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.duration {
    font-size: 13px;
    color: var(--text-muted);
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-item {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.video-item:hover {
    box-shadow: var(--shadow-hover);
}

.video-item.coming-soon {
    opacity: 0.6;
    cursor: default;
}

.video-item.coming-soon:hover {
    box-shadow: var(--shadow);
}

.video-thumb {
    position: relative;
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.img-placeholder-small {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d5a87 0%, #4a7ba7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}

.play-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: #fff;
    opacity: 0.8;
}

.video-meta h4 {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.video-meta span {
    font-size: 12px;
    color: var(--text-muted);
}

/* 视频弹窗 */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--secondary-color);
}

.modal-content {
    width: 80%;
    max-width: 900px;
}

.video-player {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.player-placeholder {
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.player-placeholder span {
    font-size: 24px;
    margin-bottom: 10px;
}

.player-placeholder p {
    color: #999;
}

/* 资料下载 */
.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 25px;
    background: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.download-item:hover {
    box-shadow: var(--shadow-hover);
}

.download-icon {
    font-size: 40px;
}

.download-info {
    flex: 1;
}

.download-info h3 {
    font-size: 17px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.download-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.file-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: var(--transition);
}

.download-btn:hover {
    background: var(--primary-light);
}

/* 联系我们 */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-panel {
    background: var(--primary-color);
    color: #fff;
    padding: 40px;
    border-radius: 8px;
}

.contact-info-panel h3 {
    font-size: 22px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item .contact-icon {
    font-size: 24px;
    width: 30px;
}

.contact-detail label {
    display: block;
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 3px;
}

.contact-detail p {
    font-size: 15px;
}

.contact-form-panel {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-form-panel h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 页脚 */
.footer {
    background: var(--primary-color);
    color: #fff;
    padding: 60px 0 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    padding: 5px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    opacity: 0.6;
}

/* Toast 提示 */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary-color);
    color: #fff;
    padding: 15px 30px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #fff;
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero {
        height: 500px;
    }
    
    .slide-content h1 {
        font-size: 28px;
    }
    
    .hero-features .container {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .video-list {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .video-item {
        min-width: 280px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
}
