/* 尧图网页制作 - 全局样式 */
/* 香水轻奢风：浅紫 + 纯白 + 香槟金 */

:root {
    --primary-purple: #D4B8E8;
    --light-purple: #E8D5F5;
    --champagne-gold: #C9A961;
    --pure-white: #FFFFFF;
    --text-dark: #2C2C2C;
    --text-light: #666666;
    --bg-gradient: linear-gradient(135deg, #F8F5FA 0%, #FFF9F0 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== 顶部导航栏 ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(168, 134, 200, 0.15);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(168, 134, 200, 0.25);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(201, 169, 97, 0.3);
}

.nav-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--champagne-gold), #A67C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--light-purple), var(--primary-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover {
    color: var(--pure-white);
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--champagne-gold), #A67C00);
    color: var(--pure-white);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--champagne-gold);
    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);
}

/* ========== 页脚 ========== */
.footer {
    background: linear-gradient(135deg, #2C2C2C 0%, #1A1A1A 100%);
    color: var(--pure-white);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--champagne-gold);
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--champagne-gold);
}

.footer-section p,
.footer-section li {
    color: #CCCCCC;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--champagne-gold);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999999;
    font-size: 0.9rem;
}

/* ========== 通用动画 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 按钮样式 ========== */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 35px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--champagne-gold), #A67C00);
    color: var(--pure-white);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--light-purple), var(--primary-purple));
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(168, 134, 200, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(168, 134, 200, 0.4);
}

/* ========== 响应式设计 ========== */
@media (max-width: 992px) {
    .nav-container {
        padding: 0 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.4s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-link {
        text-align: center;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-container {
        padding: 0 20px;
    }
}

/* ========== 时间轴布局专用样式 ========== */
.timeline-main {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 40px 60px;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 120px;
    bottom: 60px;
    width: 4px;
    background: linear-gradient(180deg, var(--champagne-gold), var(--primary-purple), var(--champagne-gold));
    transform: translateX(-50%);
    border-radius: 2px;
    animation: lineGrow 2s ease forwards;
    box-shadow: 0 0 20px rgba(201, 169, 97, 0.5);
}

@keyframes lineGrow {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: calc(100% - 180px);
        opacity: 1;
    }
}

.timeline-section {
    position: relative;
    margin-bottom: 100px;
    z-index: 1;
}

.timeline-section::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--champagne-gold);
    border-radius: 50%;
    border: 4px solid var(--pure-white);
    box-shadow: 0 0 20px rgba(201, 169, 97, 0.6);
    z-index: 2;
}

.section-banner {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.banner-title span {
    background: linear-gradient(135deg, var(--champagne-gold), #A67C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.banner-buttons {
    display: flex;
    gap: 20px;
}

.banner-image img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(168, 134, 200, 0.3);
}

/* 优势板块 */
.section-advantages {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--champagne-gold), #A67C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-card {
    background: var(--pure-white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(168, 134, 200, 0.15);
    transition: all 0.4s ease;
    border: 1px solid rgba(201, 169, 97, 0.1);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(168, 134, 200, 0.25);
    border-color: var(--champagne-gold);
}

.advantage-icon {
    margin-bottom: 20px;
}

.advantage-icon img {
    margin: 0 auto;
}

.advantage-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.advantage-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* 服务时间轴 */
.services-timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--pure-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(168, 134, 200, 0.15);
    transition: all 0.4s ease;
}

.service-item:nth-child(odd) {
    flex-direction: row;
}

.service-item:nth-child(even) {
    flex-direction: row-reverse;
}

.service-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 50px rgba(168, 134, 200, 0.25);
}

.service-number {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--light-purple), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 100px;
    text-align: center;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-link {
    color: var(--champagne-gold);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: var(--primary-purple);
    padding-left: 10px;
}

/* 快速入口 */
.entry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.entry-card {
    background: var(--pure-white);
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(168, 134, 200, 0.12);
    transition: all 0.4s ease;
    border: 1px solid rgba(201, 169, 97, 0.1);
}

.entry-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 45px rgba(168, 134, 200, 0.25);
    border-color: var(--champagne-gold);
}

.entry-card img {
    margin: 0 auto 15px;
}

.entry-card span {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* 新闻板块 */
.news-block {
    margin-bottom: 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--pure-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(168, 134, 200, 0.12);
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(168, 134, 200, 0.25);
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-info {
    padding: 20px;
}

.news-info h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    color: var(--champagne-gold);
    font-size: 0.85rem;
    font-weight: 500;
}

.news-list-horizontal {
    display: flex;
    gap: 20px;
}

.news-item-horizontal {
    display: flex;
    gap: 15px;
    background: var(--pure-white);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(168, 134, 200, 0.1);
    transition: all 0.3s ease;
    flex: 1;
}

.news-item-horizontal:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(168, 134, 200, 0.2);
}

.news-item-horizontal img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.news-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-content h5 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content span {
    color: var(--champagne-gold);
    font-size: 0.8rem;
}

.news-more {
    text-align: center;
    margin-top: 40px;
}

/* 响应式时间轴 */
@media (max-width: 1200px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .entry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .timeline-line {
        left: 40px;
    }

    .timeline-section::before {
        left: 40px;
    }

    .banner-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .banner-title {
        font-size: 2.5rem;
    }

    .banner-buttons {
        justify-content: center;
    }

    .service-item,
    .service-item:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }

    .service-item:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .timeline-main {
        padding: 100px 20px 40px;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-section::before {
        left: 20px;
    }

    .advantages-grid,
    .entry-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-list-horizontal {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

    .banner-title {
        font-size: 2rem;
    }
}
