/* 基础样式 */
:root {
    --primary-color: #1e88e5; /* 蓝色代表榕江水 */
    --secondary-color: #43a047; /* 绿色代表田园风光 */
    --accent-color: #ff6f00; /* 橙色代表潮汕活力 */
    --text-color: #333;
    --light-text: #fff;
    --background-color: #f9f9f9;
    --card-bg: #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: 'Noto Sans SC', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif SC', serif;
    margin-bottom: 1rem;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

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

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

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 2rem 0;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* 导航栏美化 */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
}

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

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
    background-color: rgba(30, 136, 229, 0.08);
}

.nav-menu a.active {
    color: var(--primary-color);
    background-color: rgba(30, 136, 229, 0.12);
    font-weight: 600;
}

/* 下划线动画效果 */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 60%;
    left: 20%;
}

/* 汉堡菜单按钮美化 */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.hamburger:hover {
    background-color: rgba(30, 136, 229, 0.1);
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 移动端菜单样式优化 */
@media (max-width: 991px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 270px;
        height: 100vh;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        flex-direction: column;
        gap: 0.5rem;
        padding: 2rem 1rem;
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        border-top-left-radius: 10px;
        z-index: 99;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        width: 100%;
        padding: 1rem 1.5rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .nav-menu a::after {
        display: none;
    }

    .hamburger {
        display: block;
    }
    
    /* 当菜单打开时，添加背景遮罩 */
    .menu-backdrop {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 98;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease;
    }
    
    .menu-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 575px) {
    .logo img {
        height: 40px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        top: 70px;
        width: 100%;
        border-radius: 0;
    }
    
    .menu-backdrop {
        top: 70px;
    }
    
    .hamburger .bar {
        width: 22px;
        height: 2px;
    }
}

/* 轮播图样式 */
.hero-slider {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

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

.slide-content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: var(--light-text);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 600px;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.slide-content p {
    font-size: 1.5rem;
}

.slider-controls {
    position: absolute;
    bottom: 5%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prev-btn, .next-btn {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 10px;
    transition: var(--transition);
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin: 0 20px;
}

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

.dot.active {
    background: #fff;
}

/* 揭阳简介样式 */
.intro {
    padding: 4rem 0;
    background-color: #fff;
}

.intro-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.intro-text {
    flex: 1;
}

.intro-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* 预览卡片样式 */
.preview-cards {
    padding: 4rem 0;
    background-color: var(--background-color);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

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

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

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.card-content p {
    margin-bottom: 1.5rem;
}

/* 页脚样式优化 */
footer {
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.95) 0%,
        rgba(30, 60, 114, 0.98) 100%
    );
    color: #fff;
    padding: 4rem 0 2rem;
    position: relative;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    width: 90px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.footer-logo h3 {
    color: #fff;
    font-size: 1.6rem;
    margin: 0;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

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

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-contact p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact i {
    margin-right: 12px;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.social-media {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-media a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.social-media a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-logo {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        margin-bottom: 2rem;
    }

    .footer-links h4:after,
    .footer-contact h4:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact p {
        justify-content: center;
    }

    .social-media {
        justify-content: center;
    }
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

@media (max-width: 767px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        align-items: center;
        margin-bottom: 2rem;
    }
}

/* 固定导航按钮组 */
.float-nav {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--light-text);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.float-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    color: var(--light-text);
}

.float-btn.home {
    background-color: var(--secondary-color);
}

.float-btn.top {
    opacity: 0;
    visibility: hidden;
}

.float-btn.top.visible {
    opacity: 1;
    visibility: visible;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .float-nav {
        bottom: 20px;
        right: 20px;
    }

    .float-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    .nav-menu {
        top: 70px;
        width: 100%;
        height: calc(100vh - 70px);
    }
} 