:root {
    --gold-primary: #FFD700;
    --gold-secondary: #F4C430;
    --gold-light: #FFF2CC;
    --gold-bright: #FFE55C;

    --white-primary: #FFFFFF;
    --white-secondary: #F8F9FA;
    --gray-light: #E9ECEF;
    --gray-medium: #DEE2E6;

    --text-dark: #2C3E50;
    --text-gray: #6C757D;
    --text-light: #F8F9FA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    will-change: transform;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    min-height: 100vh;
    background-color: var(--white-secondary);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg,
            rgba(248, 249, 250, 0.97),
            rgba(255, 255, 255, 0.95)
        ),
        url('../image/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    z-index: -1;
}

.container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
    min-height: 100vh;
}

.content-left, .content-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero {
    padding: 20px 30px;
    margin-bottom: 30px;
    margin: 0;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.95),
        rgba(248, 249, 250, 0.9)
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--gold-primary);
}

.hero-background {
    position: absolute;
    top: -30%;
    left: -30%;
    right: -30%;
    bottom: -30%;
    z-index: -1;
}

.hero-background::before,
.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
    filter: brightness(0.8) sepia(0.3) saturate(1.4);
    animation: heroBackground 15s ease-in-out infinite;
    transform-origin: center center;
    will-change: transform, opacity;
}

@keyframes backgroundChange {
    0%, 20% {
        opacity: 1;
        background-image: url('../image/1.jpg');
    }
    23%, 45% {
        opacity: 1;
        background-image: url('../image/2.jpg');
    }
    48%, 70% {
        opacity: 1;
        background-image: url('../image/3.jpg');
    }
    73%, 95% {
        opacity: 1;
        background-image: url('../image/4.jpg');
    }
    98%, 100% {
        opacity: 1;
        background-image: url('../image/1.jpg');
    }
}

.hero-background[data-bg="1"]::before { background-image: url('../image/1.jpg'); }
.hero-background[data-bg="2"]::before { background-image: url('../image/2.jpg'); }
.hero-background[data-bg="3"]::before { background-image: url('../image/3.jpg'); }
.hero-background[data-bg="4"]::before { background-image: url('../image/4.jpg'); }

.hero-background.fade-out::before {
    opacity: 0;
}

@keyframes heroBackground {
    0% {
        transform: scale(1.1) translate(-3%, -1%) rotate(-1deg);
    }
    25% {
        transform: scale(1.15) translate(3%, 1%) rotate(1deg);
    }
    50% {
        transform: scale(1.2) translate(-2%, 2%) rotate(-1.5deg);
    }
    75% {
        transform: scale(1.15) translate(2%, -1%) rotate(1deg);
    }
    100% {
        transform: scale(1.1) translate(-3%, -1%) rotate(-1deg);
    }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95),
        rgba(248, 249, 250, 0.85)
    );
    z-index: -1;
    opacity: 0.9;
    transition: opacity 0.5s ease;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 30px;
    position: relative;
    text-transform: uppercase;
    background: linear-gradient(90deg,
        var(--gold-primary) 0%,
        var(--gold-secondary) 50%,
        var(--gold-primary) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 15px rgba(255, 215, 0, 0.3);
    animation: shimmer 3s ease-in-out infinite,
              sway 6s ease-in-out infinite;
}

.hero .subtitle {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--white-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 500;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.5s backwards,
              sway 6s ease-in-out infinite reverse;
    letter-spacing: 1px;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        var(--gold-primary),
        transparent
    );
    opacity: 0.3;
}

.hero h1::before,
.hero h1::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background: var(--gold-primary);
    transform: translateY(-50%);
}

.hero h1::before {
    left: -80px;
}

.hero h1::after {
    right: -80px;
}

@keyframes slowZoom {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1.2);
    }
}

@keyframes shimmer {
    0% {
        background-position: 200% center;
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
    100% {
        background-position: -200% center;
        filter: brightness(1);
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
        animation: shimmer 2s ease-in-out infinite;
    }

    .hero .subtitle {
        font-size: 1.1rem;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    }

    .stage {
        padding: 15px;
        animation: fadeInUp 0.5s ease-out backwards;
        transform-origin: center;
    }

    .stage:hover {
        transform: scale(1.02);
        box-shadow: 0 5px 15px rgba(255, 215, 0, 0.15);
    }

    .stage-icon i {
        font-size: 1.8rem;
    }

    .stage:hover .stage-icon i {
        animation: pulse 1s infinite;
    }

    .feature {
        padding: 12px;
        animation: fadeInRight 0.4s ease-out backwards;
    }

    .feature:hover {
        transform: translateX(3px);
    }

    .feature i {
        font-size: 1.8rem;
        transition: transform 0.2s ease;
    }

    .feature:hover i {
        transform: scale(1.1);
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1.1rem;
        animation: shimmerButton 2s infinite;
    }

    .cta-button:hover {
        transform: translateY(-2px);
    }

    .cta-button i {
        transition: transform 0.2s ease;
    }

    .cta-button:hover i {
        transform: rotate(10deg);
    }

    .fade-in-section {
        transform: translateY(20px);
        transition: all 0.5s ease-out;
    }

    @keyframes touchPulse {
        0% { transform: scale(1); }
        50% { transform: scale(0.98); }
        100% { transform: scale(1); }
    }

    .stage:active,
    .feature:active,
    .cta-button:active {
        animation: touchPulse 0.3s ease-out;
    }

    .stage,
    .feature,
    .cta-button {
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
        will-change: transform;
    }

    .content-left,
    .content-right {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .hero::before {
        animation:
            heroBackground 20s ease-in-out infinite,
            backgroundChange 25s ease-in-out infinite;
    }

    @keyframes heroBackground {
        0% {
            transform: scale(1.1) translate(-2%, -0.5%) rotate(-0.5deg);
        }
        25% {
            transform: scale(1.15) translate(2%, 0.5%) rotate(0.5deg);
        }
        50% {
            transform: scale(1.2) translate(-1.5%, 1%) rotate(-0.75deg);
        }
        75% {
            transform: scale(1.15) translate(1.5%, -0.5%) rotate(0.5deg);
        }
        100% {
            transform: scale(1.1) translate(-2%, -0.5%) rotate(-0.5deg);
        }
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    .stages, .features {
        gap: 8px;
    }

    .stage, .feature {
        animation-duration: 0.4s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stage,
    .feature,
    .cta-button,
    .hero h1,
    .hero .subtitle {
        animation: none !important;
        transition: none !important;
    }

    .hero::before {
        animation: none !important;
        background: url('../image/1.jpg') no-repeat center center;
        background-size: cover;
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    .stages, .features {
        gap: 10px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .container {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 215, 0, 0.15) 0%,
        transparent 60%
    );
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite,
              sway 8s ease-in-out infinite;
    transition: background 0.3s ease;
}

.model-section {
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--gray-medium);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.model-section h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-dark);
}

.model-section h2 i {
    color: var(--gold-primary);
    margin-right: 8px;
}

.stages {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.stage {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: var(--white-primary);
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stage:hover {
    transform: translateX(5px);
    border-color: var(--gold-primary);
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.95),
        rgba(255, 215, 0, 0.1)
    );
}

.stage-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-light);
    border-radius: 8px;
}

.stage-icon i {
    font-size: 1.4rem;
    color: var(--gold-primary);
}

.stage-content {
    flex: 1;
}

.stage h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.stage p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
}

@media (max-width: 768px) {
    .model-section {
        padding: 20px;
    }

    .model-section h2 {
        font-size: 1.4rem;
    }

    .stage {
        padding: 12px;
    }

    .stage-icon {
        width: 35px;
        height: 35px;
    }

    .stage-icon i {
        font-size: 1.2rem;
    }

    .stage h3 {
        font-size: 1rem;
    }

    .stage p {
        font-size: 0.85rem;
    }
}

.content-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 100%;
}

.market-analysis {
    padding: 35px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--gray-medium);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.market-analysis h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.feature {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px;
    padding: 20px;
    align-items: center;
    background: var(--white-primary);
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    animation: slideInRight 0.6s ease-out backwards;
}

.feature:hover {
    transform: translateX(5px);
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.95),
        rgba(255, 215, 0, 0.1)
    );
}

.feature i {
    font-size: 2rem;
    color: var(--gold-primary);
    transition: all 0.3s ease;
}

.feature:hover i {
    transform: scale(1.2);
    color: var(--gold-bright);
}

.feature p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
}

.cta-section {
    padding: 35px;
    margin-top: 0;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--gold-light);
    border-radius: 12px;
    text-align: center;
}

.cta-section h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.1rem;
    margin: 20px 0;
    color: var(--text-gray);
}

.cta-button {
    padding: 15px 40px;
    font-size: 1.2rem;
    margin: 10px 0;
    background: linear-gradient(
        45deg,
        var(--gold-bright) 0%,
        var(--gold-primary) 50%,
        var(--gold-secondary) 100%
    );
    background-size: 200% auto;
    color: var(--text-dark);
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
    animation: shimmerButton 3s infinite,
              pulse 2s infinite;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
    background-position: right center;
    animation: glowPulse 1.5s infinite;
}

@keyframes shimmerButton {
    0% {
        background-position: 200% center;
    }
    50% {
        background-position: 0% center;
    }
    100% {
        background-position: -200% center;
    }
}

.cta-button i {
    margin-right: 8px;
    font-size: 1.3em;
    vertical-align: middle;
    color: #25D366;
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.7));
}

.cta-button:hover i {
    transform: rotate(15deg) scale(1.2);
}

.guarantee {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 15px;
}

@media (max-width: 768px) {
    .content-right {
        gap: 15px;
    }

    .market-analysis, .cta-section {
        padding: 25px;
    }

    .market-analysis h2, .cta-section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .feature {
        padding: 15px;
    }

    .feature i {
        font-size: 1.8rem;
    }

    .feature p {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .stage, .feature, .cta-button {
        will-change: transform;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@keyframes rotateIcon {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white-primary);
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.stage::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--gold-primary), transparent);
    z-index: -1;
    border-radius: 10px;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.stage:hover::before {
    opacity: 0.2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(255, 215, 0, 0.1),
        transparent 70%
    );
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.cta-button.clicked {
    transform: scale(0.95);
    opacity: 0.9;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 768px) {
    .cta-button {
        width: 100%;
        max-width: 300px;
        margin: 10px auto;
    }

    .cta-button:active {
        transform: scale(0.95);
        opacity: 0.9;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;

    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 50px;
}

.modal.show {
    display: flex;
    opacity: 1;
    animation: modalFadeIn 0.3s ease forwards;
}

.modal-content {
    background: var(--white-primary);
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;

    text-align: center;
    position: relative;
    transform: translateY(-20px);
    opacity: 0;
    animation: modalContentSlide 0.3s ease 0.1s forwards;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gold-light);
}

.modal-content h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.modal-content p {
    color: var(--text-gray);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-button {
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-button.cancel {
    background: var(--gray-light);
    color: var(--text-gray);
    border: none;
}

.modal-button.confirm {
    background: linear-gradient(45deg,
        var(--gold-bright),
        var(--gold-primary)
    );
    color: var(--text-dark);
    border: none;
    font-weight: 600;
}

.modal-button.confirm i {
    color: #25D366;
    margin-right: 8px;
}

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-button.cancel:hover {
    background: var(--gray-medium);
}

.modal-button.confirm:hover {
    background: linear-gradient(45deg,
        var(--gold-primary),
        var(--gold-bright)
    );
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalContentSlide {
    from {
        transform: translateY(-40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .modal {
        padding-top: 30px;
    }

    .modal-content {
        width: 85%;
        padding: 25px;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-button {
        width: 100%;
        margin: 5px 0;
    }
}

@keyframes sway {
    0%, 100% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
    }
}

.hero-glow {
    animation: glowPulse 4s ease-in-out infinite,
              sway 8s ease-in-out infinite;
}

@media (max-width: 768px) {
    @keyframes sway {
        0%, 100% {
            transform: translateX(-2px);
        }
        50% {
            transform: translateX(2px);
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero h1,
    .hero .subtitle,
    .hero-glow,
    .hero::before {
        animation: none !important;
    }
}