/* General Styles */
:root {
    --primary: #1E5B45;       /* 深绿色 - 比之前更饱和 */
    --secondary: #4A9D76;     /* 中等饱和度的绿色 */
    --accent: #E9B75C;        /* 稍微更饱和的金色 */
    --background: #F8FAF9;    /* 带有一丝绿色调的白色背景 */
    --text: #2C3E35;          /* 深绿灰色文本 */
    --light-gray: #EFF5F2;    /* 带绿色调的浅灰色 */
    --gray: #D8E6E0;          /* 带绿色调的中性灰色 */
    --dark-gray: #6D857C;     /* 带绿色调的深灰色 */
    --danger: #D8636F;        /* 保持柔和的红色 */
    --success: #43A97E;       /* 略微增加饱和度的绿色 */
    --warning: #EBB356;       /* 略微增加饱和度的黄色 */
    --border-radius: 8px;
    --box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Noto Sans SC', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;  /* 降低字重，更现代 */
    line-height: 1.3;
    color: var(--primary);
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    border-radius: 6px;  /* 略微减小圆角 */
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
}

.btn i {
    margin-right: 0.5rem;
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
}

.btn-primary:hover {
    background-color: #3A8661;  /* 深绿色 */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 157, 118, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--gray);  /* 更柔和的边框 */
}

.btn-secondary:hover {
    background-color: var(--light-gray);  /* 不使用太高对比度 */
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-weight: 500;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);  /* 半透明边框 */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);  /* 半透明背景 */
    color: white;
    border-color: white;
    transform: translateY(-2px);
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);  /* 更柔和的阴影 */
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);  /* 更柔和的阴影 */
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    transition: var(--transition);
}

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

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

.logo-image {
    height: 40px;
    width: auto;
}

.navigation-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navigation-menu ul li a {
    font-weight: 500;
    color: var(--primary);
    position: relative;
    padding: 0.5rem 0;
}

.navigation-menu ul li a.active,
.navigation-menu ul li a:hover {
    color: var(--secondary);
}

.navigation-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.navigation-menu ul li a:hover::after,
.navigation-menu ul li a.active::after {
    width: 100%;
}

.search-box {
    display: flex;
    max-width: 300px;
    width: 100%;
}

.search-box input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid var(--gray);
    border-right: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    outline: none;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.8);  /* 半透明背景 */
}

.search-box input:focus {
    border-color: var(--secondary);
    background-color: white;
}

.search-box button {
    padding: 0 1.25rem;
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background-color: #677F7E;  /* 暗青绿色 */
}

/* Main Content */
main {
    margin-top: 80px;
    padding-bottom: 3rem;
}

/* Hero Section */
.hero-section {
    padding: 5rem 0 3rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    max-width: 60%;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
}

.highlight {
    color: var(--secondary);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 100%;
    height: 10px;
    background-color: rgba(74, 157, 118, 0.2);  /* 略微增加饱和度 */
    z-index: -1;
    transform: skewX(-10deg);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    max-width: 90%;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.tagline-box {
    position: relative;
    max-width: 35%;
    background: linear-gradient(135deg, var(--primary) 0%, #24704E 100%);  /* 深绿色渐变 */
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    animation: float 6s ease-in-out infinite;
}

.tagline {
    color: white;
    font-size: 3rem;
    text-align: center;
    font-weight: 700;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title h2 {
    display: inline-block;
    position: relative;
    font-size: 2.25rem;
}

.title-decoration {
    width: 70px;
    height: 3px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    margin: 0 auto;
    margin-top: 15px;
    border-radius: 2px;
}

/* Featured Section */
.featured-section {
    padding: 4rem 0;
}

.featured-content {
    display: flex;
    gap: 30px;
}

/* Slider Styles */
.slider {
    position: relative;
    width: 65%;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 450px;
    box-shadow: var(--box-shadow);
}

.slide {
    display: none;
    position: relative;
    height: 100%;
}

.slide.active {
    display: block;
}

.slide-image {
    height: 100%;
    width: 100%;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    color: white;
}

.slide-meta {
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.slide-content h2 {
    color: white;
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
}

.slide-content p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.slide-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 2;
}

.slide-controls button {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    color: var(--primary);
}

.slide-controls button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.indicator {
    width: 8px;  /* 更小的指示点 */
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background-color: white;
    transform: scale(1.2);
}

/* Image Grid Styles */
.image-grid {
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.top-image, .bottom-image {
    position: relative;
    height: calc(50% - 10px);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    border-radius: var(--border-radius);
}

.top-image img, .bottom-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: white;
}

.card-badge {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--accent);
    color: #34495E;  /* 使用主色调增加对比度 */
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.card-content h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.card-content p {
    opacity: 0.9;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.card-link {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.card-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.card-link:hover {
    color: var(--accent);
}

.card-link:hover i {
    transform: translateX(5px);
}

.top-image:hover img, .bottom-image:hover img {
    transform: scale(1.05);
}

/* Entries Section */
.entries-section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.refresh-button {
    background-color: var(--light-gray);
    color: var(--primary);
}

.refresh-button:hover {
    background-color: var(--gray);
    color: var(--primary);
}

.entries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.entry-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--light-gray);  /* 柔和的边框 */
}

.entry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);  /* 柔和的阴影 */
}

.entry-image {
    height: 180px;
    position: relative;
    overflow: hidden;
}

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

.entry-card:hover .entry-image img {
    transform: scale(1.1);
}

.entry-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent);
    color: #34495E;  /* 使用主色调增加对比度 */
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.entry-content {
    padding: 1.5rem;
}

.entry-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--primary);
}

.entry-content p {
    color: var(--dark-gray);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.entry-meta {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--dark-gray);
}

.entry-meta span {
    display: flex;
    align-items: center;
}

.entry-meta i {
    margin-right: 5px;
    font-size: 0.875rem;
}

/* Newsletter Section */
.newsletter-section {
    padding: 4rem 0;
    background-color: rgba(74, 157, 118, 0.1);  /* 略微增加饱和度的背景 */
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    margin-bottom: 1rem;
}

.newsletter-content p {
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray);
    border-right: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    outline: none;
    background-color: rgba(255, 255, 255, 0.8);  /* 半透明背景 */
}

.newsletter-form input:focus {
    border-color: var(--secondary);
    background-color: white;
}

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 0 2rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1E5B45 0%, #164234 100%);  /* 深绿色渐变 */
    padding: 4rem 0 0;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 3rem;
}

.footer-about {
    padding-right: 2rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-about p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-links h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-contact i {
    margin-right: 10px;
    opacity: 0.6;
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Tooltip Styles */
.tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
    pointer-events: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);  /* 柔和的阴影 */
}

.tooltip:before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Loading Animation */
.loading {
    position: relative;
    display: inline-block;
}

.loading:after {
    content: '...';
    position: absolute;
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
    animation: ellipsis 2s infinite;
    width: 0px;
}

@keyframes ellipsis {
    from {
        width: 0px;
    }
    to {
        width: 15px;
    }
}

.notification.info {
    background-color: var(--secondary);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 40px;
    }
    
    .featured-content {
        flex-direction: column;
    }
    
    .slider, .image-grid {
        width: 100%;
    }
    
    .image-grid {
        flex-direction: row;
        height: 220px;
    }
    
    .top-image, .bottom-image {
        width: calc(50% - 10px);
        height: 100%;
    }
}

@media (max-width: 768px) {
    header {
        position: relative;
        padding: 1rem 0;
    }
    
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .navigation-menu ul {
        gap: 1rem;
    }
    
    .search-box {
        max-width: 100%;
        margin-top: 1rem;
    }
    
    main {
        margin-top: 0;
    }
    
    .hero-section {
        flex-direction: column;
        padding: 3rem 0 2rem;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .tagline-box {
        max-width: 100%;
        width: 100%;
        padding: 2rem;
    }
    
    .entries-grid {
        grid-template-columns: 1fr;
    }
    
    .image-grid {
        flex-direction: column;
        height: auto;
    }
    
    .top-image, .bottom-image {
        width: 100%;
        height: 220px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-about {
        padding-right: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }
} 