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

:root {
    --red-primary: #E53935;
    --red-dark: #C62828;
    --red-light: #FF5252;
    --gold-primary: #D4A574;
    --gold-dark: #B8860B;
    --gold-light: #F5DEB3;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-600: #757575;
    --gray-800: #424242;
    --gray-900: #212121;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--red-primary);
}

.logo-icon {
    font-size: 28px;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-800);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--red-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red-primary);
    border-radius: 2px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-800);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 50%, #8B0000 100%);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--gold-primary) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 50%;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
    opacity: 0.2;
    border-radius: 50%;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gold-primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(212, 165, 116, 0.4);
}

.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212, 165, 116, 0.5);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--red-primary);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Section Common Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-600);
}

/* About Section */
.about {
    background: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Products Section */
.products {
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--gray-200);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-primary);
}

.product-card.featured {
    border-color: var(--red-primary);
    background: linear-gradient(180deg, #FFF5F5 0%, var(--white) 100%);
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--red-primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-image {
    font-size: 64px;
    margin-bottom: 24px;
}

.product-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.product-desc {
    font-size: 15px;
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.7;
}

.product-features {
    list-style: none;
    margin-bottom: 30px;
}

.product-features li {
    padding: 10px 0;
    padding-left: 24px;
    position: relative;
    font-size: 14px;
    color: var(--gray-800);
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--red-primary);
    font-weight: 700;
}

.btn-product {
    width: 100%;
    background: var(--red-primary);
    color: var(--white);
    text-align: center;
}

.btn-product:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
}

/* Testimonials Section */
.testimonials {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.testimonial-rating {
    margin-bottom: 16px;
    font-size: 18px;
}

.testimonial-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-800);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    font-size: 40px;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--gray-900);
}

.author-role {
    font-size: 13px;
    color: var(--gray-600);
}

/* Contact Section */
.contact {
    background: var(--white);
}

.contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact-info {
    text-align: center;
    max-width: 600px;
}

.contact-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.contact-subtitle {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.contact-icon {
    font-size: 28px;
}

.contact-label {
    display: block;
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.contact-value {
    font-weight: 600;
    color: var(--gray-900);
}

.contact-form {
    background: var(--gray-50);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 15px;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--red-primary);
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.1);
}

.btn-submit {
    width: 100%;
    background: var(--red-primary);
    color: var(--white);
    padding: 18px;
    font-size: 16px;
    border-radius: 12px;
}

.btn-submit:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--gray-300);
    font-size: 14px;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--gold-primary);
}

.footer-column a {
    display: block;
    color: var(--gray-300);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
    transition: var(--transition);
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: var(--gray-300);
}

.footer-bottom a {
    color: var(--gray-300);
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom a:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 4px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav {
        gap: 16px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid .product-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        gap: 16px;
    }
    
    .nav.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 16px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .features-grid,
    .products-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid .product-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }
    
    .contact-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-details {
        flex-direction: column;
        gap: 24px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .contact-title {
        font-size: 28px;
    }
    

}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-left {
    transform: translateX(-50px);
}

.animate-on-scroll.animate-right {
    transform: translateX(50px);
}

.animate-on-scroll.animate-zoom {
    transform: scale(0.8);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 50%, #8B0000 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--gold-primary) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
    opacity: 0.2;
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(229, 57, 53, 0.15);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--gray-200);
    overflow: hidden;
}

.product-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product-card:hover::after {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(229, 57, 53, 0.2);
    border-color: var(--gold-primary);
}

.product-card.featured {
    border-color: var(--red-primary);
    background: linear-gradient(180deg, #FFF5F5 0%, var(--white) 100%);
    animation: pulse 3s ease-in-out infinite;
}

.product-image {
    font-size: 64px;
    margin-bottom: 24px;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.15) rotate(-5deg);
}

.testimonial-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 80px;
    color: var(--gold-light);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(212, 165, 116, 0.2);
}

.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gold-primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(212, 165, 116, 0.4);
}

.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 30px rgba(212, 165, 116, 0.6);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--red-primary);
    transform: translateY(-4px) scale(1.05);
}



.section-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--red-primary), var(--gold-primary));
    border-radius: 2px;
    transition: width 0.4s ease;
}

.section-header:hover .section-title::after {
    width: 100px;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--gold-light);
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--red-primary);
    transition: transform 0.3s ease;
}

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

.logo-icon {
    font-size: 28px;
    animation: float 3s ease-in-out infinite;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-800);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--red-primary);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--red-primary);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

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

.nav-link.active::after {
    display: none;
}

.footer-column a {
    display: block;
    color: var(--gray-300);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-column a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: var(--white);
    padding-left: 20px;
}

.footer-column a:hover::before {
    opacity: 1;
    left: 0;
}

/* Process Section */
.process {
    background: var(--gray-50);
    padding: 100px 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-card {
    background: var(--white);
    padding: 30px 24px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red-primary), var(--gold-primary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.process-card:hover::before {
    transform: scaleX(1);
}

.process-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.process-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--red-primary);
    margin-bottom: 12px;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.process-card:hover .process-number {
    opacity: 1;
    transform: scale(1.1);
}

.process-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.process-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Advantages Section */
.advantages {
    background: var(--white);
    padding: 100px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.advantage-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.advantage-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red-primary), var(--gold-primary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.advantage-card:hover::after {
    transform: scaleX(1);
}

.advantage-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(229, 57, 53, 0.15);
    border-color: var(--gold-primary);
}

.advantage-icon {
    font-size: 48px;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.2) rotate(-10deg);
}

.advantage-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.advantage-card p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .process-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

/* Showcase Section */
.showcase {
    background: var(--white);
    padding: 100px 0;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.showcase-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    aspect-ratio: 4/3;
}

.showcase-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.showcase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px 20px 20px;
    color: var(--white);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.showcase-card:hover .showcase-overlay {
    transform: translateY(0);
    opacity: 1;
}

.showcase-overlay h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.showcase-overlay p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

/* Results Section */
.results {
    background: var(--gray-50);
    padding: 100px 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.result-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.result-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: top;
}

.result-info {
    padding: 24px;
}

.result-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.result-info p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Testimonial Images */
.testimonial-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

/* Certificate Section */
.certificate {
    background: var(--white);
    padding: 100px 0;
}

.certificate-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.certificate-img {
    max-width: 100%;
    max-height: 600px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s ease;
    object-fit: contain;
}

.certificate-img:hover {
    transform: scale(1.02);
}

@media (max-width: 1024px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .showcase-card {
        aspect-ratio: 16/9;
    }
    
    .result-card img {
        height: 220px;
    }
    
    .certificate-img {
        max-height: 400px;
    }
}

/* Carousel Section */
.carousel-section {
    background: var(--white);
    padding: 80px 0;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    height: 480px;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 320px;
    height: 420px;
    margin-left: -160px;
    margin-top: -210px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: var(--white);
}

.carousel-slide-bg {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(20px) brightness(0.8);
    transform: scale(1.1);
    z-index: 0;
}

.carousel-slide img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.carousel-slide.active {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 10;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    filter: none;
}

.carousel-slide.prev-1 {
    transform: translateX(-260px) scale(0.8);
    opacity: 0.65;
    z-index: 5;
    filter: brightness(0.75);
}

.carousel-slide.prev-2 {
    transform: translateX(-480px) scale(0.65);
    opacity: 0.35;
    z-index: 3;
    filter: brightness(0.5);
}

.carousel-slide.next-1 {
    transform: translateX(260px) scale(0.8);
    opacity: 0.65;
    z-index: 5;
    filter: brightness(0.75);
}

.carousel-slide.next-2 {
    transform: translateX(480px) scale(0.65);
    opacity: 0.35;
    z-index: 3;
    filter: brightness(0.5);
}

.carousel-slide.hidden {
    transform: translateX(0) scale(0.5);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 30px 0 0;
    background: transparent;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.dot.active {
    background: var(--red-primary);
    transform: scale(1.3);
    border-color: var(--red-primary);
    box-shadow: 0 0 10px rgba(229, 57, 53, 0.4);
}

.dot:hover {
    background: rgba(0, 0, 0, 0.4);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-nav:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

@media (max-width: 768px) {
    .carousel-section {
        padding: 40px 0;
    }
    
    .carousel {
        height: 380px;
    }
    
    .carousel-slide {
        width: 240px;
        height: 320px;
        margin-left: -120px;
        margin-top: -160px;
    }
    
    .carousel-slide.prev-1 {
        transform: translateX(-180px) scale(0.8);
    }
    
    .carousel-slide.prev-2 {
        transform: translateX(-340px) scale(0.65);
    }
    
    .carousel-slide.next-1 {
        transform: translateX(180px) scale(0.8);
    }
    
    .carousel-slide.next-2 {
        transform: translateX(340px) scale(0.65);
    }
    
    .carousel-nav {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
}

/* 首屏简介下方的下载入口，电脑端和手机端均可使用。 */
.hero-download {
    margin-bottom: 32px;
}

.hero-app-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    min-height: 44px;
    padding: 10px 28px;
    font-weight: 700;
    color: #6B2600;
    background: #FFD54F;
    border: 2px solid #FFE082;
    box-shadow: 0 4px 16px rgba(92, 24, 0, 0.25);
    touch-action: manipulation;
}

.hero-app-download::before {
    content: none;
}

.hero-app-download:hover {
    color: #6B2600;
    background: #FFE082;
    border-color: #FFECB3;
}

.hero-app-download:active {
    background: #FFC107;
    border-color: #FFD54F;
}

.hero-app-download:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 4px;
}

/* 放在既有规则之后，避免后面的桌面通用样式覆盖手机端设置。 */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px;
    }

    .container {
        padding-inline: 16px;
    }

    .header .container {
        min-height: 64px;
        padding: 10px 16px;
    }

    .header .logo {
        font-size: 21px;
        gap: 8px;
        flex-shrink: 0;
    }

    .mobile-menu-btn {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        background: var(--gray-50);
        touch-action: manipulation;
    }

    .nav {
        gap: 8px;
        padding: 12px 16px 16px;
        max-height: calc(100vh - 64px);
        max-height: calc(100dvh - 64px);
        overflow-y: auto;
        overscroll-behavior: contain;
        border-top: 1px solid var(--gray-200);
    }

    .nav.active {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 10px 6px;
        border-radius: 8px;
        font-size: 14px;
        background: var(--gray-50);
    }

    .nav-link.active {
        background: #fff0ef;
    }

    .nav-link.active::after {
        display: none;
    }

    .mobile-menu-btn:focus-visible,
    .nav-link:focus-visible {
        outline: 2px solid var(--gold-primary);
        outline-offset: 3px;
    }

    .hero {
        min-height: 0;
        padding: 112px 0 44px;
    }

    .hero > .container {
        width: 100%;
    }

    .hero-content {
        transform: none !important;
    }

    .hero-title {
        font-size: clamp(26px, 7vw, 36px);
        line-height: 1.45;
        margin-bottom: 18px;
    }

    .hero-subtitle {
        font-size: 15px;
        line-height: 1.9;
        margin-bottom: 24px;
    }

    .hero-download {
        margin-bottom: 24px;
    }

    .hero-app-download {
        min-width: 144px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding-top: 24px;
    }

    .stat-number {
        font-size: clamp(19px, 5.8vw, 28px);
        line-height: 1.3;
        margin-bottom: 8px;
        white-space: nowrap;
    }

    .stat-label {
        font-size: 12px;
    }

    .about, .process, .advantages, .certificate, .contact {
        padding: 48px 0;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-title, .contact-title {
        font-size: clamp(23px, 6vw, 30px);
        line-height: 1.5;
    }

    .section-subtitle {
        font-size: 14px;
        line-height: 1.8;
    }

    .features-grid, .process-grid, .advantages-grid {
        gap: 16px;
    }

    .feature-card, .advantage-card {
        padding: 26px 20px;
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .process-card {
        padding: 20px 12px;
    }

    .process-number {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .process-card h3 {
        font-size: 16px;
    }

    .process-card p {
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    /* 手机只保留淡入，避免左右入场动画和触屏悬停造成横向溢出。 */
    .animate-on-scroll.animate-left,
    .animate-on-scroll.animate-right,
    .animate-on-scroll.animate-zoom {
        transform: translateY(16px);
    }

    .animate-on-scroll.visible {
        transform: none;
    }

    .feature-card:hover, .process-card:hover, .advantage-card:hover,
    .certificate-img:hover, .stat-item:hover .stat-number {
        transform: none;
    }

    .carousel-section {
        padding: 32px 0;
    }

    .carousel {
        height: 360px;
        touch-action: pan-y;
    }

    .carousel-track {
        height: calc(100% - 44px);
    }

    .carousel-slide {
        width: min(70vw, 240px);
        margin-left: max(-35vw, -120px);
    }

    .carousel-dots {
        padding-top: 16px;
        gap: 14px;
    }

    .dot {
        position: relative;
    }

    .dot::before {
        content: '';
        position: absolute;
        inset: -6px;
    }

    .certificate-img {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
        border-radius: 12px;
    }

    .contact-info {
        width: 100%;
    }

    .contact-details {
        gap: 16px;
    }

    .contact-item {
        gap: 12px;
        padding: 16px;
        border-radius: 12px;
        background: var(--gray-50);
    }

    .contact-item > div {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .footer {
        padding: 36px 0 24px;
    }

    .footer-content {
        gap: 28px;
        margin-bottom: 24px;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .footer-column a {
        display: flex;
        align-items: center;
        min-height: 44px;
        margin-bottom: 0;
    }

    .footer-bottom {
        gap: 10px;
        padding-top: 20px;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
}
