/* ========================================
   ArrowRS 网站建设官网 - 乡村田园风格
   颜色：浅绿 + 土黄 + 纯白
   ======================================== */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background-color: #fafafa;
    color: #333333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   顶部导航栏 - 固定响应式
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(46, 125, 50, 0.1);
    transition: all 0.4s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(46, 125, 50, 0.15);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #2e7d32;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #333333;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #2e7d32, #d4a574);
    transition: width 0.3s ease;
    border-radius: 2px 2px 0 0;
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    width: 80%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #2e7d32;
    background: rgba(46, 125, 50, 0.05);
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #2e7d32;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 移动端菜单 */
@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 5px;
        transition: left 0.4s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        padding: 15px 20px;
        font-size: 16px;
        border-bottom: 1px solid #f0f0f0;
    }
}

/* ========================================
   页面主体内容区域
   ======================================== */
.main-content {
    padding-top: 80px;
    min-height: calc(100vh - 200px);
}

/* ========================================
   Hero Banner - 多点辐射聚焦布局
   ======================================== */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 50%, #fff8e1 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(46, 125, 50, 0.08) 0%, transparent 70%);
    animation: rotate 25s linear infinite reverse;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(46, 125, 50, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    color: #2e7d32;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: #555555;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(46, 125, 50, 0.4);
}

.btn-secondary {
    background: white;
    color: #2e7d32;
    border: 2px solid #2e7d32;
}

.btn-secondary:hover {
    background: #2e7d32;
    color: white;
    transform: translateY(-3px);
}

/* ========================================
   核心优势板块 - 辐射状布局
   ======================================== */
.features-section {
    padding: 100px 0;
    background: white;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 16px;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
}

.feature-card {
    background: linear-gradient(145deg, #ffffff 0%, #f9f9f9 100%);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2e7d32, #d4a574);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(46, 125, 50, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #e8f5e9 0%, #fff8e1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 15px;
}

.feature-desc {
    font-size: 14px;
    color: #666666;
    line-height: 1.8;
}

/* ========================================
   快速入口板块
   ======================================== */
.quick-access-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.access-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    group: access;
}

.access-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.access-card:hover img {
    transform: scale(1.1);
}

.access-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(46, 125, 50, 0.9), transparent);
    color: white;
}

.access-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.access-desc {
    font-size: 14px;
    opacity: 0.9;
}

/* ========================================
   资讯列表板块
   ======================================== */
.news-section {
    padding: 100px 0;
    background: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.15);
}

.news-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 13px;
    color: #d4a574;
    margin-bottom: 10px;
    display: block;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 14px;
    color: #666666;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-more {
    display: inline-block;
    margin-top: 15px;
    color: #2e7d32;
    font-weight: 600;
    font-size: 14px;
}

.news-more::after {
    content: ' →';
    transition: transform 0.3s ease;
}

.news-more:hover::after {
    transform: translateX(5px);
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #d4a574;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: #d4a574;
    padding-left: 5px;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}

/* ========================================
   通用页面样式
   ======================================== */
.page-header {
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
    padding: 120px 0 60px;
    text-align: center;
}

.page-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 15px;
}

.page-breadcrumb {
    font-size: 14px;
    color: #666666;
}

.page-breadcrumb a {
    color: #2e7d32;
}

.page-content {
    padding: 80px 0;
}

/* ========================================
   动画效果
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .hero-content {
        margin: 20px;
        padding: 40px 25px;
    }

    .features-section,
    .quick-access-section,
    .news-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ========================================
   滚动条美化
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2e7d32, #d4a574);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2e7d32;
}
