/* 基础样式 */
:root {
    --primary-color: #2c5282;
    --secondary-color: #4299e1;
    --accent-color: #ed8936;
    --text-color: #2d3748;
    --light-bg: #f7fafc;
    --dark-bg: #1a365d;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--light-bg);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 加载动画 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader__circle {
    width: 40px;
    height: 40px;
    border: 3px solid var(--light-bg);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: loader-spin 1s infinite linear;
}

@keyframes loader-spin {
    to {
        transform: rotate(360deg);
    }
}

/* 导航栏样式 */
.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 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav__logo {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav__logo i {
    font-size: 28px;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav__link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav__search,
.nav__user {
    color: var(--text-color);
    font-size: 20px;
    text-decoration: none;
    transition: var(--transition);
}

.nav__search:hover,
.nav__user:hover {
    color: var(--primary-color);
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
}

/* Hero区域样式 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--dark-bg);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(44, 82, 130, 0.9), rgba(66, 153, 225, 0.9));
}

.hero__content {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-align: center;
}

.hero__title {
    margin-bottom: 20px;
}

.hero__title-main {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    display: block;
}

.hero__title-sub {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
    display: block;
}

.hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero__cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn--primary {
    background: var(--gradient);
    color: var(--white);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 153, 225, 0.4);
}

.btn--outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn--outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* 政务服务区域样式 */
.section {
    padding: 100px 0;
}

.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gradient);
}

.section__subtitle {
    color: var(--text-color);
    font-size: 1.1rem;
    opacity: 0.8;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service__card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.service__card:hover {
    transform: translateY(-10px);
}

.service__icon {
    width: 80px;
    height: 80px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service__icon i {
    font-size: 40px;
    color: var(--primary-color);
}

.service__card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service__card p {
    margin-bottom: 20px;
    color: var(--text-color);
    opacity: 0.8;
}

.service__link {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    transition: var(--transition);
}

.service__link:hover {
    gap: 10px;
}

/* 便民服务区域样式 */
.convenience__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.convenience__card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.convenience__card:hover {
    transform: translateY(-10px);
}

.convenience__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.convenience__content {
    padding: 30px;
}

.convenience__content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.convenience__content p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.convenience__meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.convenience__meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 新闻公告区域样式 */
.news__tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.news__tab {
    padding: 10px 20px;
    border: none;
    background: none;
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.news__tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.news__tab.active {
    color: var(--primary-color);
}

.news__tab.active::after {
    width: 100%;
}

.news__list {
    display: none;
}

.news__list.active {
    display: block;
}

.news__item {
    display: flex;
    gap: 30px;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news__item:hover {
    transform: translateX(10px);
}

.news__date {
    min-width: 80px;
    text-align: center;
}

.news__date-day {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.news__date-month {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
}

.news__info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.news__info p {
    margin-bottom: 15px;
    opacity: 0.8;
}

.news__link {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    transition: var(--transition);
}

.news__link:hover {
    gap: 10px;
}

/* 数据统计区域样式 */
.stats {
    background: var(--gradient);
    color: var(--white);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat__number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.stat__label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 联系表单样式 */
.contact__form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.form__group {
    position: relative;
}

.form__group input,
.form__group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    background: var(--white);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

.form__group textarea {
    height: 150px;
    resize: none;
}

.form__line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.form__group input:focus,
.form__group textarea:focus {
    outline: none;
    box-shadow: 0 5px 15px rgba(66, 153, 225, 0.1);
}

.form__group input:focus ~ .form__line,
.form__group textarea:focus ~ .form__line {
    width: 100%;
}

/* 页脚样式 */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer__logo {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: var(--white);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer__info p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer__social {
    display: flex;
    gap: 15px;
}

.footer__social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer__social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer__bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .convenience__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        transition: var(--transition);
    }

    .nav__menu.active {
        left: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
    }

    .nav__toggle {
        display: block;
    }

    .hero__title-main {
        font-size: 3rem;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .convenience__grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero__title-main {
        font-size: 2.5rem;
    }

    .section__title {
        font-size: 2rem;
    }

    .news__item {
        flex-direction: column;
        text-align: center;
    }

    .news__date {
        margin-bottom: 15px;
    }

    .hero__cta {
        flex-direction: column;
    }
} 