/* Main Styles - 页面特定样式 */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    background: var(--gradient-light);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: var(--gradient-primary);
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(100px);
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.hero__title {
    font-size: var(--text-5xl);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: var(--text-lg);
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
    max-width: 540px;
}

.hero__cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

.hero__stats {
    display: flex;
    gap: var(--space-3xl);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.stat-item__value {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--color-primary);
}

.stat-item__label {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

.hero__image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    /* 设置最小高度避免布局抖动 */
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    background: var(--color-bg);
    padding: var(--space-lg);
    transition: all var(--transition-slow);
    /* 确保图片始终可见 */
    display: block;
    object-fit: contain;
}

.image-switcher {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-sm);
    background: var(--color-bg);
    padding: var(--space-sm);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
}

.image-switcher__btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-light);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.image-switcher__btn:hover,
.image-switcher__btn.active {
    background: var(--gradient-primary);
    color: #fff;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0.6;
}

.scroll-indicator__text {
    font-size: var(--text-xs);
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator__mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-text-light);
    border-radius: var(--radius-full);
    position: relative;
}

.scroll-indicator__wheel {
    width: 4px;
    height: 8px;
    background: var(--color-text-light);
    border-radius: var(--radius-full);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(12px);
        opacity: 0.3;
    }
}

/* Features Grid */
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

/* Technical Section */
.technical__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.technical__image-wrapper {
    position: relative;
}

.technical__image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    background: #fff;
    padding: var(--space-lg);
}

.technical__image-overlay {
    position: absolute;
    bottom: var(--space-lg);
    left: var(--space-lg);
    background: rgba(0, 0, 0, 0.7);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
}

.technical__image-label {
    color: #fff;
    font-size: var(--text-sm);
    font-weight: 500;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-lg);
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-primary);
}

.spec-item__label {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

.spec-item__value {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text);
}

/* Applications */
.applications__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

/* CTA Section */
.cta {
    background: var(--gradient-dark);
    color: #fff;
    padding: var(--space-4xl) 0;
}

.cta__content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta__title {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.cta__description {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-2xl);
}

.cta__form-wrapper {
    max-width: 700px;
    margin: var(--space-2xl) auto var(--space-xl);
    padding: 0 var(--space-xl);
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-3xl) var(--space-2xl);
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
}

.contact-form .form-group {
    margin-bottom: var(--space-lg);
}

.contact-form .form-group:last-of-type {
    margin-bottom: var(--space-xl);
}

.contact-form .form-group--half {
    margin-bottom: 0;
}

.contact-form .form-input,
.contact-form .form-textarea {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-base);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all var(--transition-fast);
}

.contact-form .form-input::placeholder,
.contact-form .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form .form-input:focus,
.contact-form .form-textarea:focus {
    outline: none;
    border-color: var(--color-accent-light);
    background: rgba(255, 255, 255, 0.15);
}

.contact-form .form-textarea {
    resize: vertical;
    min-height: 140px;
    font-family: inherit;
    line-height: 1.6;
}

.contact-form .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-lg);
    margin-top: var(--space-md);
}

.contact-form .btn__icon {
    width: 22px;
    height: 22px;
}

.cta__note {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.7);
}

.cta__note a {
    color: var(--color-accent-light);
    font-weight: 600;
}

.cta__note a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--color-bg-dark);
    color: #fff;
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4xl);
    margin-bottom: var(--space-3xl);
}

.footer__brand {
    text-align: left;
    max-width: 350px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.footer__description {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer__links {
    text-align: left;
}

.footer__link-title {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: #fff;
}

.footer__link-group ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer__link-group a {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer__link-group a:hover {
    color: #fff;
}

.footer__bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer__copyright {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
}

.footer__copyright a {
    color: rgba(255, 255, 255, 0.7);
}

.footer__copyright a:hover {
    color: #fff;
}

.footer__icp {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.footer__icp::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* 响应式布局 */
@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
        text-align: center;
    }
    
    .hero__content {
        order: 2;
    }
    
    .hero__image-wrapper {
        order: 1;
    }
    
    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero__cta {
        justify-content: center;
    }
    
    .hero__stats {
        justify-content: center;
    }
    
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .technical__content {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
    
    .technical__image-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .applications__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__content {
        flex-direction: column;
        gap: var(--space-2xl);
        text-align: center;
    }
    
    .footer__brand {
        max-width: 100%;
        text-align: center;
    }
    
    .footer__logo {
        justify-content: center;
    }
    
    .footer__links {
        text-align: center;
    }
    
    /* CTA 响应式 */
    .cta__form-wrapper {
        padding: 0 var(--space-md);
        margin: var(--space-xl) auto;
    }
    
    .contact-form {
        padding: var(--space-2xl) var(--space-lg);
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }
    
    .contact-form .form-group {
        margin-bottom: var(--space-md);
    }
    
    .contact-form .form-group:last-of-type {
        margin-bottom: var(--space-lg);
    }
    
    .contact-form .form-group--half {
        margin-bottom: var(--space-md);
    }
    
    .contact-form .btn {
        font-size: var(--text-base);
    }
}

@media (max-width: 640px) {
    .hero__title {
        font-size: var(--text-4xl);
    }
    
    .hero__stats {
        flex-direction: column;
        gap: var(--space-xl);
    }
    
    .features__grid {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .applications__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__links {
        text-align: center;
    }
    
    /* CTA 小屏幕优化 */
    .cta__form-wrapper {
        padding: 0 var(--space-sm);
    }
    
    .contact-form {
        padding: var(--space-xl) var(--space-md);
        border-radius: var(--radius-lg);
    }
    
    .contact-form .form-input,
    .contact-form .form-textarea {
        padding: var(--space-sm) var(--space-md);
    }
    
    .contact-form .form-textarea {
        min-height: 120px;
    }
}