/* 保留原始所有CSS */
:root {
    --primary: #FF0000;
    --dark: #121212;
    --darker: #0a0a0a;
    --light: #f5f5f5;
    --gray: #333;
    --light-gray: #444;
    --while: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
}
a{
    color: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(to right, var(--darker), rgba(0,0,0,0.7));
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo span {
    color: var(--light);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 16px;
}

nav ul li a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('hero_bg.jpg') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.hero h1 {
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--primary);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background-color: #f5c542;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--dark);
}

/* About Section */
.section {
    padding: 30px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--light-gray);
    max-width: 700px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--light);
}

.about-text p {
    margin-bottom: 20px;
    color: #ccc;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Features Section */
.features {
    background-color: var(--darker);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--gray);
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s;
    border-left: 4px solid var(--primary);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--light);
}

.feature-card p {
    color: #ccc;
}

/* News Section */
.news {
    background-color: var(--darker);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--gray);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    border-bottom: 3px solid var(--primary);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.news-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--light);
}

.news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.news-title a:hover {
    color: var(--primary);
}

.news-excerpt {
    color: #ccc;
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.read-more:after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more:hover:after {
    transform: translateX(3px);
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

/* Testimonials */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    background-color: var(--gray);
    padding: 30px 40px;
    border-radius: 10px;
    margin: 20px;
    position: relative;
}

.testimonial:before {
    content: '"';
    font-size: 80px;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 0;
    line-height: 1;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.client-info {
    display: flex;
    align-items: center;
}

.client-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.client-details h4 {
    color: var(--light);
    margin-bottom: 5px;
}

.client-details p {
    font-style: normal;
    color: var(--primary);
    font-size: 14px;
}

/* CTA Section */
.cta {
    background: linear-gradient(to right, var(--darker), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    text-align: center;
    padding: 100px 0;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--light);
}

.cta p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: #ccc;
}

/* FAQ Section */
.faq {
    background-color: var(--darker);
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: var(--gray);
    color: var(--light);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--dark);
}

.faq-answer p {
    padding: 20px 0;
    color: #ccc;
}

.faq-question.active + .faq-answer {
    max-height: 500px;
}

.faq-toggle {
    font-size: 20px;
    transition: transform 0.3s;
}

.faq-question.active .faq-toggle {
    transform: rotate(45deg);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-info {
    background-color: var(--gray);
    padding: 30px;
    border-radius: 10px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary);
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-detail i {
    font-size: 20px;
    color: var(--primary);
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background-color: var(--gray);
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    color: var(--light);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--darker);
    padding: 50px 0 20px;
    border-top: 1px solid var(--light-gray);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--gray);
    border-radius: 50%;
    color: var(--light);
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    color: #ccc;
    font-size: 14px;
}

.url-display {
    background-color: var(--primary);
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin: 30px 0;
    font-weight: 600;
}

.url-display a {
    color: var(--dark);
    text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav ul li {
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .hero h1 {
        font-size: 56px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .btn-outline {
        margin-left: 0;
    }
}

/* 新增新闻详情页专用样式 */

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    margin-bottom: 30px;
    color: #ccc;
    font-size: 14px;
    border-bottom: 1px solid var(--light-gray);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #f5c542;
}

.breadcrumb span {
    margin: 0 8px;
    color: var(--light-gray);
}

/* 新闻详情容器 */
.news-detail-container {
    background-color: var(--gray);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* 新闻封面图 */
.news-cover {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* 新闻详情内容 */
.news-detail-content {
    padding: 40px;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    color: var(--primary);
    font-size: 14px;
}

.news-detail-date {
    margin-right: 20px;
}

.news-detail-category {
    background-color: rgba(224, 168, 13, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    color: #fff;
}

.news-detail-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--light);
    line-height: 1.3;
}

.news-detail-subtitle {
    font-size: 20px;
    color: #ccc;
    margin-bottom: 30px;
    font-weight: 400;
}

.news-detail-body {
    color: #ddd;
    line-height: 1.8;
}

.news-detail-body p {
    margin-bottom: 20px;
}

.news-detail-body img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 8px;
}

.news-detail-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #bbb;
}

/* 相关新闻 */
.related-news {
    margin-bottom: 60px;
}

.related-news h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--primary);
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

/* 分享按钮 */
.share-buttons {
    display: flex;
    gap: 15px;
    margin: 40px 0;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 30px;
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.share-btn i {
    margin-right: 8px;
}

.share-facebook {
    background-color: #3b5998;
}

.share-twitter {
    background-color: #1da1f2;
}

.share-linkedin {
    background-color: #0077b5;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 返回按钮 */
.back-to-news {
    display: inline-block;
    margin-top: 30px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.back-to-news:hover {
    color: #f5c542;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .news-cover {
        height: 250px;
    }
    
    .news-detail-content {
        padding: 25px;
    }
    
    .news-detail-title {
        font-size: 28px;
    }
    
    .news-detail-subtitle {
        font-size: 18px;
    }
    
    .news-detail-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-detail-date {
        margin-bottom: 10px;
        margin-right: 0;
    }
}