/* CSS变量定义 */
:root {
    /* 颜色 */
    --primary-color: #4a6cfa;
    --secondary-color: #5d3be8;
    --accent-color: #ff7846;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --text-color: #333;
    --light-text: #777;
    --white: #fff;
    --border-color: #eee;
    --success-color: #28a745;
    --error-color: #dc3545;
    
    /* 文字 */
    --body-font: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    --heading-font: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    --h1-size: 3.5rem;
    --h2-size: 2.5rem;
    --h3-size: 1.75rem;
    --body-size: 1rem;
    --small-size: 0.875rem;
    
    /* 布局 */
    --container-width: 1200px;
    --section-spacing: 80px;
    --item-spacing: 20px;
    --border-radius: 5px;
    --border-radius-lg: 12px;
    
    /* 动画 */
    --transition-fast: 0.3s;
    --transition-medium: 0.5s;
    --transition-slow: 0.8s;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all var(--transition-fast) ease;
}

a:hover {
    color: var(--secondary-color);
}

button {
    cursor: pointer;
    font-family: var(--body-font);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-spacing) 0;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all var(--transition-fast) ease;
    box-shadow: 0 4px 15px rgba(74, 108, 250, 0.3);
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 108, 250, 0.4);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(74, 108, 250, 0.4);
}

.btn-accent {
    background-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(255, 120, 70, 0.3);
}

.btn-accent:hover {
    background-color: #e86a3c;
    box-shadow: 0 8px 25px rgba(255, 120, 70, 0.4);
}

/* 排版 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

h1 {
    font-size: var(--h1-size);
}

h2 {
    font-size: var(--h2-size);
}

h3 {
    font-size: var(--h3-size);
}

p {
    margin-bottom: 20px;
}

.text-primary {
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--light-text);
}

/* 头部导航 */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: transparent;
    z-index: 1000;
    transition: all var(--transition-medium) ease;
}

.main-header.fixed {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.main-header.fixed .logo img {
    height: 35px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: width var(--transition-fast) ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
}

.mobile-menu-btn .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: all 0.3s ease;
}

/* 主区域 */
.hero-area {
    padding-top: 100px;
    padding-bottom: var(--section-spacing);
    position: relative;
    background: linear-gradient(135deg, rgba(74, 108, 250, 0.1) 0%, rgba(93, 59, 232, 0.1) 100%);
    overflow: hidden;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 540px;
}

.hero-text h1 {
    margin-bottom: 25px;
    animation: fadeInUp 1s ease;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-text .buttons {
    display: flex;
    gap: 15px;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.hero-image {
    flex: 1;
    text-align: right;
    animation: fadeIn 1s ease 0.6s;
    animation-fill-mode: both;
}

.hero-image img {
    max-width: 100%;
    animation: floatAnimation 5s ease-in-out infinite;
}

/* 服务部分 */
.services {
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-medium) ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, rgba(74, 108, 250, 0.1) 0%, rgba(93, 59, 232, 0.1) 100%);
    transition: height var(--transition-medium) ease;
    z-index: -1;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(74, 108, 250, 0.3);
}

.service-item:hover::before {
    height: 100%;
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    background-color: rgba(74, 108, 250, 0.1);
    border-radius: 50%;
    transition: all var(--transition-medium) ease;
}

.service-item:hover .service-icon {
    background-color: var(--primary-color);
    color: var(--white);
    transform: rotateY(360deg);
}

.service-item h3 {
    margin-bottom: 15px;
}

.service-item p {
    color: var(--light-text);
    margin-bottom: 20px;
}

/* 关于我们部分 */
.about {
    background-color: var(--light-color);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 10px;
    top: 20px;
    left: 20px;
    z-index: -1;
}

.about-text h2 {
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 25px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item .label {
    color: var(--light-text);
    font-size: var(--small-size);
}

/* 文章部分 */
.articles {
    background-color: var(--white);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-medium) ease;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.article-image {
    overflow: hidden;
    height: 200px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium) ease;
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-content {
    padding: 25px;
}

.article-date {
    font-size: var(--small-size);
    color: var(--light-text);
    margin-bottom: 10px;
}

.article-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.article-description {
    color: var(--light-text);
    margin-bottom: 20px;
}

/* 画廊部分 */
.gallery {
    background-color: var(--light-color);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: var(--white);
    color: var(--dark-color);
    border: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all var(--transition-fast) ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 280px;
    transition: all var(--transition-medium) ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium) ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 108, 250, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-medium) ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    color: var(--white);
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform var(--transition-medium) ease;
}

.gallery-item:hover .gallery-overlay h3 {
    transform: translateY(0);
}

.gallery-overlay .category {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--small-size);
    transform: translateY(20px);
    transition: transform var(--transition-medium) ease 0.1s;
}

.gallery-item:hover .gallery-overlay .category {
    transform: translateY(0);
}

/* 联系部分 */
.contact {
    background-color: var(--white);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: rgba(74, 108, 250, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-right: 20px;
}

.contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(74, 108, 250, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-fast) ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

.contact-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 108, 250, 0.1);
    outline: none;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ff4444;
    background-color: #fff8f8;
}

.error-message {
    color: #ff4444;
    font-size: 14px;
    margin-top: 5px;
    display: block;
    animation: fadeIn 0.3s ease;
}

.form-result {
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    font-size: 15px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-result.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-result.error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 15px;
    }
    
    .form-result {
        padding: 12px;
        font-size: 14px;
    }
}

/* 页脚 */
.footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 30px;
    margin-bottom: 50px;
}

.footer-about .logo {
    color: var(--white);
    margin-bottom: 20px;
    display: inline-block;
}

.footer-about p {
    margin-bottom: 25px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-column h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    text-align: left;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column p {
    text-align: left;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast) ease;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    margin-left: 0;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    font-family: var(--body-font);
    width: 100%;
    margin-bottom: 10px;
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    background-color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 回到顶部按钮 */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(74, 108, 250, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-medium) ease;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    :root {
        --h1-size: 3rem;
        --h2-size: 2.2rem;
        --section-spacing: 70px;
    }
    
    .hero-area {
        padding-top: 80px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    :root {
        --section-spacing: 70px;
        --h1-size: 3rem;
        --h2-size: 2.2rem;
    }
    
    .hero-area {
        padding-top: 80px;
    }
    
    .carousel {
        height: 450px;
        margin-bottom: 40px;
    }
    
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .hero-text .buttons {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .main-header.fixed .logo img {
        height: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 60px;
        --h1-size: 2.5rem;
        --h2-size: 2rem;
        --h3-size: 1.5rem;
    }
    
    .hero-area {
        padding-top: 70px;
    }
    
    .carousel {
        height: 400px;
        margin-bottom: 30px;
    }
    
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .hero-text .buttons {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .logo img {
        height: 30px;
    }
    
    .main-header.fixed .logo img {
        height: 28px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 75px);
        background-color: var(--white);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: left var(--transition-medium) ease;
        z-index: 1000;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    nav ul li {
        margin-left: 0;
        margin-bottom: 20px;
    }
    
    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .gallery-grid,
    .services-grid,
    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    .main-header {
        padding: 15px 0;
    }
    
    .main-header.fixed {
        padding: 12px 0;
    }
    
    .logo img {
        height: 30px;
    }
    
    .main-header.fixed .logo img {
        height: 28px;
    }
}

@media (max-width: 576px) {
    :root {
        --section-spacing: 50px;
        --h1-size: 2rem;
        --h2-size: 1.8rem;
        --body-size: 0.95rem;
    }
    
    .hero-area {
        padding-top: 60px;
    }
    
    .carousel {
        height: 350px;
        margin-bottom: 25px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .btn {
        padding: 10px 25px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-image::before {
        display: none;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn {
        margin: 5px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* 微信二维码弹窗样式 */
.wechat-modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.wechat-modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

.close-modal {
    color: var(--light-text);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color var(--transition-fast) ease;
}

.close-modal:hover {
    color: var(--dark-color);
}

.qrcode-container {
    margin: 20px 0;
}

.qrcode-container img {
    border: 1px solid #eee;
    border-radius: 5px;
}

/* 联系表单提示信息和成功消息样式 */
.notice-message, .success-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    animation: fadeIn 0.3s ease-in-out;
    width: 100%;
}

.notice-message {
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.5;
}

.success-message {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #155724;
    font-weight: 500;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .notice-message, .success-message {
        padding: 12px;
        font-size: 0.85rem;
    }
}

/* 轮播图样式优化 */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
    height: 500px;
    aspect-ratio: 16 / 9;
    max-height: 600px;
    background-color: #000;
}

@media (max-width: 1200px) {
    .carousel {
        height: 450px;
    }
}

@media (max-width: 992px) {
    .carousel {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .carousel {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .carousel {
        height: 250px;
    }
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), visibility 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    will-change: opacity, transform;
    z-index: 1;
}

.carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transform: scale(1.05);
    transition: transform 1.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.carousel-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.carousel-item.active img {
    transform: scale(1);
}

.carousel-item.entering {
    animation: fadeIn 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.carousel-item.leaving {
    animation: fadeOut 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(1.08);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.92);
    }
}

.carousel-content {
    color: #fff;
    max-width: 80%;
    padding: 2.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: var(--border-radius);
    backdrop-filter: blur(8px);
    transform: translateY(0);
    transition: transform 0.6s ease, opacity 0.6s ease;
    z-index: 5;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-item.entering .carousel-content {
    animation: slideUp 1s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

@keyframes slideUp {
    0% {
        transform: translateY(40px);
        opacity: 0;
    }
    20% {
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.carousel-item h3 {
    margin-top: 0;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    transform: translateY(0);
    transition: transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0.1s;
}

.carousel-item p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    transition: transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0.2s;
}

.carousel-item .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    text-transform: none;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translateY(0);
    opacity: 1;
}

.carousel-item .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 992px) {
    .carousel-item h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .carousel-content {
        max-width: 90%;
        padding: 2rem;
    }
    
    .carousel-item h3 {
        font-size: 1.6rem;
    }
    
    .carousel-item p {
        font-size: 1rem;
    }
    
    .carousel-item .btn {
        padding: 10px 25px;
    }
}

@media (max-width: 576px) {
    .carousel-content {
        max-width: 95%;
        padding: 1.5rem;
    }
    
    .carousel-item h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .carousel-item p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .carousel-item .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: scale(1);
}

.carousel-dot.active {
    background-color: #fff;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    opacity: 0;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel:hover .carousel-prev,
.carousel:hover .carousel-next {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .carousel-prev,
    .carousel-next {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
}

/* 文章页面移动端导航栏调整 */
@media (max-width: 768px) {
    .article-detail .logo img,
    .main-header .logo img {
        height: 30px !important;
        width: auto !important;
        max-width: 120px;
        object-fit: contain;
    }
    
    /* 特别针对文章页面的logo */
    body .article-detail .header-container .logo img {
        height: 28px !important;
        width: auto !important;
        max-width: 110px;
    }
    
    .article-detail .mobile-menu-btn {
        width: 35px;
        height: 30px;
        margin-top: 5px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .article-detail .mobile-menu-btn .bar {
        height: 3px;
        margin: 3px 0;
        width: 100%;
        background-color: var(--dark-color);
    }
    
    .article-detail .header-container {
        padding: 10px 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .article-detail .logo img,
    .main-header .logo img {
        height: 25px !important;
        width: auto !important;
        max-width: 100px;
        object-fit: contain;
    }
    
    /* 特别针对文章页面的logo */
    body .article-detail .header-container .logo img {
        height: 24px !important;
        width: auto !important;
        max-width: 90px;
    }
    
    .article-detail .mobile-menu-btn {
        width: 28px;
        height: 24px;
        margin-top: 3px;
    }
    
    .article-detail .mobile-menu-btn .bar {
        height: 2px;
        margin: 3px 0;
    }
}

/* 添加更小屏幕设备的优化 */
@media (max-width: 360px) {
    .main-header .logo img,
    .article-detail .logo img {
        height: 22px !important;
        width: auto !important;
        max-width: 85px;
        object-fit: contain;
    }
    
    /* 特别针对文章页面的logo */
    body .article-detail .header-container .logo img {
        height: 20px !important;
        width: auto !important;
        max-width: 75px;
    }
    
    .main-header {
        padding: 15px 0;
    }
    
    .main-header.fixed {
        padding: 10px 0;
    }
}

/* 响应式logo样式 */
.responsive-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.main-header.fixed .responsive-logo {
    height: 35px;
}

@media (max-width: 992px) {
    .responsive-logo {
        height: 35px;
    }
    
    .main-header.fixed .responsive-logo {
        height: 32px;
    }
}

@media (max-width: 768px) {
    .responsive-logo {
        height: 30px !important;
        max-width: 120px;
    }
    
    .main-header.fixed .responsive-logo {
        height: 28px !important;
    }
    
    .footer-about .responsive-logo {
        height: 35px !important;
        max-width: 130px;
    }
}

@media (max-width: 480px) {
    .responsive-logo {
        height: 25px !important;
        max-width: 100px;
    }
    
    .main-header.fixed .responsive-logo {
        height: 24px !important;
    }
    
    .footer-about .responsive-logo {
        height: 30px !important;
        max-width: 110px;
    }
}

@media (max-width: 360px) {
    .responsive-logo {
        height: 22px !important;
        max-width: 85px;
    }
    
    .main-header.fixed .responsive-logo {
        height: 20px !important;
    }
    
    .footer-about .responsive-logo {
        height: 25px !important;
        max-width: 95px;
    }
}

/* 订阅消息样式 */
.subscribe-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.subscribe-message.success {
    background-color: rgba(76, 175, 80, 0.2);
    color: #388e3c;
    border: 1px solid #388e3c;
}

.subscribe-message.error {
    background-color: rgba(244, 67, 54, 0.2);
    color: #d32f2f;
    border: 1px solid #d32f2f;
}

/* 在页脚中订阅消息的特殊样式 */
.footer .subscribe-message {
    color: #fff;
    margin-top: 10px;
}

.footer .subscribe-message.success {
    background-color: rgba(76, 175, 80, 0.3);
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.footer .subscribe-message.error {
    background-color: rgba(244, 67, 54, 0.3);
    border: 1px solid rgba(244, 67, 54, 0.5);
}

.form-result {
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-result.success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.form-result.error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
}

/* 文章分享按钮 */
.share-buttons {
    display: flex;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.share-buttons p {
    margin-right: 15px;
    margin-bottom: 0;
    font-weight: 500;
}

.share-buttons .social-link {
    display: inline-flex;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 18px;
}

.article-detail .social-links {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: 30px;
}

.article-detail .share-buttons .social-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
} 
