/* 全局样式 */
:root {
    --primary-color: #00a0e9;
    --secondary-color: #0071bc;
    --accent-color: #ff9f00;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Heiti SC", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

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

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

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

ul {
    list-style: none;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

/* 按钮样式 */
.more-btn, .submit-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.more-btn:hover, .submit-btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

/* 头部样式 */
header {
    padding: 15px 0;
    background-color: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Placeholder styling to ensure dynamically loaded content integrates correctly */
#header-placeholder,
#footer-placeholder {
    display: contents;
}

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

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

.logo img {
    max-height: 50px;
}

.logo-text {
    margin-left: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-menu {
    display: flex;
}

.main-menu li {
    position: relative;
    margin-left: 20px;
}

.main-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--dark-color);
    font-weight: 600;
}

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

/* 下拉菜单 */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 180px;
    box-shadow: var(--shadow);
    z-index: 1;
    border-radius: 4px;
}

.dropdown-content a {
    color: var(--dark-color);
    padding: 12px 16px;
    display: block;
    text-align: left;
    font-weight: normal;
}

.dropdown-content a:hover {
    background-color: var(--light-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* 用户操作按钮 */
.user-actions {
    display: flex;
    align-items: center;
}

.login-btn, .register-btn {
    padding: 8px 20px;
    margin-left: 10px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.login-btn {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.login-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.register-btn {
    background-color: var(--primary-color);
    color: #fff;
}

.register-btn:hover {
    background-color: var(--secondary-color);
}

/* 主页英雄区 */
.hero {
    color: #fff;
    text-align: center;
}

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

.banner-img {
    width: 100%;
    height: auto;
    display: block;
}

.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* 介绍部分 */
.intro {
    padding: 60px 0;
    text-align: center;
}

.intro p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 应用卡片 */
.application {
    padding: 60px 0;
    background-color: var(--light-color);
}

.application .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.app-card {
    flex: 1;
    min-width: 300px;
    margin: 15px;
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.app-card h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
}

.app-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.app-item {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 4px;
    background-color: var(--light-color);
    transition: var(--transition);
    cursor: pointer;
}

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

/* 解决方案 */
.solutions {
    padding: 60px 0;
    text-align: center;
}

.solutions h2 {
    margin-bottom: 10px;
}

.solutions > p {
    margin-bottom: 40px;
}

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

.solution-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.solution-card:hover {
    transform: translateY(-10px);
}

.solution-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

.solution-card h3 {
    margin-top: 15px;
}

.solution-card p {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.solution-card .more-btn {
    margin-bottom: 20px;
}

/* 效益部分 */
.benefits {
    padding: 60px 0;
    background-color: var(--light-color);
    text-align: center;
}

.benefits h2 {
    margin-bottom: 20px;
}

.benefits > p {
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.benefit-card {
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* 产品中心 */
.products {
    padding: 60px 0;
    text-align: center;
}

.products h2 {
    margin-bottom: 10px;
}

.products h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.products > p {
    max-width: 800px;
    margin: 0 auto 10px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    padding: 25px;
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 20px;
}

.product-card h4 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.6em;
}

.sub-category {
    margin-bottom: 20px;
    text-align: left;
}

.sub-category-title {
    font-weight: 600;
    font-size: 1.1em;
    color: var(--dark-color);
    margin-bottom: 8px;
    padding-left: 0;
}

.product-card .sub-product-list {
    list-style-type: none;
    margin-left: 0;
    padding-left: 10px;
    margin-bottom: 15px;
}

.product-card .sub-product-list li {
    margin-bottom: 6px;
    font-size: 0.95em;
    position: relative;
    padding-left: 20px;
}

.product-card .sub-product-list li::before {
    content: "•";
    color: var(--primary-color);
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 1px;
}

.product-card .sub-product-list li a {
    color: var(--text-color);
}

.product-card .sub-product-list li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.product-card .more-btn {
    margin-top: 20px;
}

/* 联系表单 */
.contact {
    padding: 60px 0;
    background-color: var(--light-color);
    text-align: center;
}

.contact h2 {
    margin-bottom: 40px;
}

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

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

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

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

.submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    font-weight: 600;
}

/* 新闻部分 */
.news {
    padding: 60px 0;
}

.news h2 {
    text-align: center;
    margin-bottom: 20px;
    display: inline-block;
}

.news .container {
    position: relative;
}

.news .more-btn {
    position: absolute;
    top: 0;
    right: 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.3rem;
}

.news-card p {
    padding: 0 20px 20px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    justify-content: space-between;
    align-items: flex-start;
}

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

.footer-about h3 {
    font-size: 1.3rem;
}

.footer-about p {
    margin-bottom: 20px;
    line-height: 1.8;
    max-width: 95%;
    text-align: justify;
    color: #ddd;
}

.footer-links h3,
.footer-contact h3,
.footer-about h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
    text-align: left;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3:after,
.footer-contact h3:after,
.footer-about h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul {
    padding-left: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
    text-align: left;
    transition: all 0.3s ease;
}

.footer-links ul li a {
    color: #ddd;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links ul li a:before {
    content: '›';
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--accent-color);
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 20px;
}

.footer-contact {
    text-align: left;
}

.footer-contact p {
    margin-bottom: 15px;
    color: #ddd;
    display: flex;
    align-items: center;
}

.footer-contact .hotline {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
}

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

.footer-bottom p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #aaa;
}

/* 响应式布局 */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .app-card {
        min-width: calc(50% - 30px);
    }
    
    .footer-content {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 20px;
    }
    
    .footer-about p {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-menu li {
        margin: 5px;
    }
    
    .user-actions {
        margin-top: 15px;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .app-card {
        min-width: 100%;
    }
    
    .solution-grid,
    .product-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px 15px;
    }
    
    .footer-about {
        grid-column: 1 / -1;
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .footer-links h3:after,
    .footer-contact h3:after,
    .footer-about h3:after {
        width: 40px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-about,
    .footer-links,
    .footer-contact {
        text-align: center;
    }
    
    .footer-links ul li {
        text-align: center;
    }
    
    .footer-links h3:after,
    .footer-contact h3:after,
    .footer-about h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links ul li a {
        display: inline-block;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

/* 页面头部banner */
.page-header {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.page-header .banner-img {
    width: 100%;
    height: auto;
    display: block;
}

.page-header .banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    color: #fff;
    line-height: 1.6;
}

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

.page-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* 解决方案导航 */
.solution-nav {
    background-color: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 80px;
    z-index: 99;
}

.solution-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.solution-nav li {
    margin: 0;
    padding: 0;
}

.solution-nav a {
    display: block;
    padding: 15px 20px;
    color: var(--dark-color);
    font-weight: 600;
    transition: var(--transition);
}

.solution-nav a:hover,
.solution-nav a.active {
    color: var(--primary-color);
    background-color: var(--light-color);
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
}

/* 新闻页面样式 */
.news-section {
    padding: 60px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.news-content {
    padding: 20px;
}

.news-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.news-title {
    color: var(--dark-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-summary {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.news-read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.news-read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.news-read-more:hover::after {
    width: 100%;
}

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

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 400px; /* Adjust as needed, should match SVG height */
    overflow: hidden;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    visibility: hidden;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the slide area */
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    z-index: 10;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3); /* Slight dark overlay for text readability */
    border-radius: 8px;
}

.slide-content h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.slide-content h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: normal;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.slide-content p {
    font-size: 1.1em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

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

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dots .dot.active {
    background-color: #fff;
}

/* Responsive adjustments for slider text if needed */
@media (max-width: 768px) {
    .slide-content h1 {
        font-size: 2em;
    }
    .slide-content h2 {
        font-size: 1.3em;
    }
    .slide-content p {
        font-size: 0.9em;
    }
    .hero-slider {
        height: 300px; /* Adjust height for smaller screens */
    }
}

/* Introduction Section - Adjust if spacing is off */
.intro {
    padding: 40px 0;
} 