/* ========================================
   GEO优化公司 - 主样式表
   ======================================== */

/* 基础样式 */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #f59e0b;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* 导航栏 */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    background: transparent !important;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .nav-link {
    color: var(--text-dark) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--white) !important;
    margin: 0 0.5rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

.hero-stats {
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.stat-item small {
    opacity: 0.8;
    font-size: 0.875rem;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.floating-card.card-2 {
    bottom: 20%;
    left: -30px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator a {
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
}

.section-header.text-center {
    text-align: center;
}

.subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* About Section */
.about-image {
    position: relative;
}

.about-image img {
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-badge .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.875rem;
    opacity: 0.9;
}

.feature-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-item .content h5 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.feature-item .content p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.stat-box {
    padding: 2rem;
}

.stat-box i {
    font-size: 2.5rem;
    opacity: 0.9;
}

.stat-box h3 {
    font-size: 3rem;
    font-weight: 900;
    margin: 1rem 0 0.5rem;
}

.stat-box p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Service Cards */
.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.service-features li i {
    color: var(--secondary-color);
}

/* Advantage Cards */
.advantage-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.advantage-card:hover .advantage-icon {
    background: var(--primary-color);
    color: var(--white);
}

.advantage-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.advantage-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Comparison Section */
.comparison-section {
    margin-top: 4rem;
}

.comparison-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    height: 100%;
}

.comparison-card.before {
    border-left: 4px solid #ef4444;
}

.comparison-card.after {
    border-left: 4px solid #10b981;
}

.comparison-card h5 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.comparison-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-card ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    color: var(--text-muted);
}

.comparison-card ul li:last-child {
    border-bottom: none;
}

/* Case Cards */
.case-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.case-image {
    position: relative;
    overflow: hidden;
}

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

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

.case-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.case-content {
    padding: 1.5rem;
}

.case-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.case-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.case-stats .stat {
    text-align: center;
}

.case-stats .number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.case-stats .label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.author-info h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

/* Contact Section */
.contact-info {
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item .content h5 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.contact-item .content p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.form-floating > .form-control,
.form-floating > .form-select {
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer */
.footer {
    background: #111827 !important;
}

.footer-brand h4 {
    color: var(--white);
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact li {
    color: #9ca3af;
    display: flex;
    align-items: flex-start;
}

.social-links a {
    color: #9ca3af;
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--white);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-left {
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-bottom-right a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
    white-space: nowrap;
}

.footer-bottom-right a:hover {
    color: var(--white);
}

/* 备案号样式 */
.beian-link {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e5e7eb !important;
    font-weight: 500;
    transition: var(--transition);
}

.beian-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white) !important;
    transform: translateY(-2px);
}

.beian-link i {
    color: var(--success-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    text-decoration: none;
}

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

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

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .floating-card {
        display: none;
    }
    
    .experience-badge {
        right: 0;
        bottom: -10px;
    }
}

@media (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .stat-box h3 {
        font-size: 2rem;
    }
    
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem;
        border-radius: 0.75rem;
        margin-top: 1rem;
    }
    
    .navbar-collapse .nav-link {
        color: var(--text-dark) !important;
    }
    
    /* Footer Bottom Mobile */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .footer-bottom-left {
        order: 2;
    }
    
    .footer-bottom-right {
        order: 1;
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-bottom-right a {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .footer-bottom-right {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-bottom-right a {
        padding: 0.25rem 0;
    }
    
    .beian-link {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        margin-top: 0.5rem;
    }
}

/* Animation Classes */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Print Styles */
@media print {
    .navbar,
    .scroll-indicator,
    .back-to-top,
    .cta-section {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    section {
        page-break-inside: avoid;
    }
}
