﻿/* 基础样式 */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --success-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --text-color: #374151;
    --text-light: #6b7280;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #f8fafc;
    overflow-x: hidden;
}

/* 公告栏 */
.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 0.75rem 0;
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
}

/* 当有公告栏时，为body添加上边距 */
body.has-announcement {
    padding-top: 60px; /* 公告栏高度 */
}

/* 确保英雄区域不被导航栏遮挡 */
.hero-section {
    padding-top: 80px; /* 导航栏高度 */
}

body.has-announcement .hero-section {
    padding-top: 120px; /* 导航栏 + 公告栏高度 */
}

/* 导航栏 */
.navbar {
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* 当有公告栏时，导航栏需要下移 */
.announcement-bar + .navbar {
    top: 48px; /* 公告栏的高度 */
}

.navbar-brand {
    font-weight: 700;
    color: white !important;
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    width: 1.65rem;
    height: 1.65rem;
    object-fit: contain;
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.08);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    margin: 0 0.5rem;
}

.navbar-nav .nav-link:hover {
    color: white !important;
}

/* 英雄区域 */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../image/photo-1557804506-669a67965ba0.jpg') center/cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.58));
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    color: white;
    margin-bottom: 1.5rem;
    overflow-wrap: anywhere;
}

.text-gradient {
    display: block;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    overflow-wrap: break-word;
}

.btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-block;
    margin-right: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background: white;
    color: var(--dark-color);
}

.btn-wechat {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.92);
    color: white;
}

.btn-wechat:hover,
.btn-wechat:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: white;
    color: white;
}

.copy-tip {
    position: fixed;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%);
    z-index: 1100;
    display: none;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    background: rgba(17, 24, 39, 0.92);
    color: white;
    font-size: 0.875rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.copy-tip.show {
    display: block;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.hero-buttons .btn {
    margin-right: 0;
}

.hero-image img {
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.side-jump-nav {
    position: fixed;
    right: 18px;
    top: 50%;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(14px);
    transform: translateY(-50%);
}

.side-jump-link {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.side-jump-link:hover,
.side-jump-link:focus,
.side-jump-link.active {
    color: white;
    background: var(--primary-color);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
    transform: translateY(-1px);
}

.side-jump-primary {
    color: white;
    background: var(--success-color);
}

.side-jump-primary:hover,
.side-jump-primary:focus,
.side-jump-primary.active {
    background: #059669;
    box-shadow: 0 10px 22px rgba(16, 185, 129, 0.28);
}

.side-jump-service {
    height: 3.45rem;
    border-radius: 1rem;
    color: white;
    background: var(--success-color);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.side-jump-service:hover,
.side-jump-service:focus,
.side-jump-service.active {
    color: white;
    background: #059669;
    box-shadow: 0 10px 22px rgba(16, 185, 129, 0.28);
}

.side-jump-divider {
    display: block;
    width: 1.8rem;
    height: 1px;
    margin: 0.15rem auto;
    background: rgba(148, 163, 184, 0.35);
}

.side-jump-wechat {
    color: white;
    background: #07c160;
}

.side-jump-contact {
    position: relative;
    display: flex;
}

.wechat-qr-popover {
    position: absolute;
    top: 50%;
    right: calc(100% + 14px);
    width: 224px;
    padding: 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 0.75rem;
    background: white;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.24);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.wechat-qr-popover::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -7px;
    width: 14px;
    height: 14px;
    background: white;
    border-top: 1px solid rgba(148, 163, 184, 0.24);
    border-right: 1px solid rgba(148, 163, 184, 0.24);
    transform: translateY(-50%) rotate(45deg);
}

.wechat-qr-popover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.side-jump-contact:hover .wechat-qr-popover,
.side-jump-wechat:focus + .wechat-qr-popover {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.side-jump-wechat:hover,
.side-jump-wechat:focus {
    color: white;
    background: #05a955;
    box-shadow: 0 10px 22px rgba(7, 193, 96, 0.28);
}

.side-jump-whatsapp {
    color: white;
    background: #25d366;
}

.side-jump-whatsapp:hover,
.side-jump-whatsapp:focus {
    color: white;
    background: #1ebe5d;
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.28);
}

.side-jump-telegram {
    color: white;
    background: #229ed9;
}

.side-jump-telegram:hover,
.side-jump-telegram:focus {
    color: white;
    background: #168ac0;
    box-shadow: 0 10px 22px rgba(34, 158, 217, 0.28);
}

/* 服务卡片 */
.service-card {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    height: 100%;
    margin-bottom: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    margin-bottom: 0.5rem;
}

.service-features i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

/* 区块标题 */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
}

/* 关于我们 */
.about-section {
    background: var(--light-color);
    padding: 5rem 0;
}

.about-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* 统计卡片 */
.stat-card {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.stat-card .stat-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.stat-card .stat-icon i {
    font-size: 1.25rem;
    color: white;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* 客户反馈 */
.testimonial-card {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    height: 100%;
    margin-bottom: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    margin-right: 1rem;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    transition: border-color 0.3s ease;
}

.testimonial-avatar img:hover {
    border-color: var(--primary-color);
}

.testimonial-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.testimonial-company {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.testimonial-rating {
    margin-bottom: 0.5rem;
}

.testimonial-content p {
    color: var(--text-color);
    font-style: italic;
    line-height: 1.6;
}

/* 联系我们 */
.contact-section {
    background: var(--light-color);
    padding: 5rem 0;
}

.contact-form-section {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.quick-contact-section {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    height: 100%;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.contact-info {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* 页脚 */
.footer-section {
    background: var(--dark-color);
    color: white;
}

.friendship-links-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
}

.friendship-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: block;
    text-align: center;
    margin-bottom: 0.5rem;
}

.friendship-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.footer-main {
    padding: 3rem 0;
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color);
}

.footer-link-list {
    list-style: none;
}

.footer-link-list li {
    margin-bottom: 0.75rem;
}

.footer-link-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-link-list a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.copyright-text {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-left: 1.5rem;
}

.footer-bottom-links a:hover {
    color: white;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 5.25rem;
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding-bottom: 5.75rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .hero-buttons {
        display: grid;
        gap: 0;
    }

    .side-jump-nav {
        top: auto;
        right: 50%;
        bottom: 1rem;
        flex-direction: row;
        gap: 0.35rem;
        padding: 0.45rem;
        border-radius: 999px;
        transform: translateX(50%);
    }

    .side-jump-link {
        width: 2.45rem;
        height: 2.45rem;
    }

    .side-jump-service {
        width: 4.5rem;
        height: 2.45rem;
        border-radius: 999px;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .side-jump-service br {
        display: none;
    }

    .wechat-qr-popover {
        top: auto;
        right: 50%;
        bottom: calc(100% + 0.8rem);
        width: min(220px, calc(100vw - 2rem));
        transform: translateX(50%) translateY(8px);
    }

    .wechat-qr-popover::after {
        top: auto;
        right: 50%;
        bottom: -7px;
        transform: translateX(50%) rotate(135deg);
    }

    .side-jump-contact:hover .wechat-qr-popover,
    .side-jump-wechat:focus + .wechat-qr-popover {
        transform: translateX(50%) translateY(0);
    }

    .side-jump-divider {
        width: 1px;
        height: 1.65rem;
        margin: auto 0.1rem;
    }

    .back-to-top {
        display: none;
    }

    .footer-bottom-links {
        text-align: center;
        margin-top: 1rem;
    }
    
    .footer-bottom-links a {
        margin: 0 0.75rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-card,
    .testimonial-card,
    .contact-form-section,
    .quick-contact-section {
        padding: 1.5rem;
    }
}
