/* 重置和基本样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0071e3;
    --secondary-color: #86868b;
    --accent-color: #06c;
    --text-color: #1d1d1f;
    --light-gray: #f5f5f7;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    --section-transition: 0.8s cubic-bezier(0.42, 0, 0.58, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* 头部导航 */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    min-width: 120px;
    max-width: 300px;
    height: 56px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.logo {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.1);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* 主要内容 */
main {
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

/* 页面切换动画 */
section {
    scroll-snap-align: start;
    transition: transform var(--section-transition), opacity var(--section-transition);
    position: relative;
}

.section-active {
    opacity: 1;
    transform: translateX(0);
}

.section-prev {
    opacity: 0;
    transform: translateX(-100%);
}

.section-next {
    opacity: 0;
    transform: translateX(100%);
}

/* 页面导航指示器 */
.page-indicator {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.page-indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.page-indicator-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

h1, h2, h3, h4 {
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* 英雄区域 */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('main_device_image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding: 12rem 5%;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    animation: fadeInUp 1s ease;
}

.hero .tagline {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

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

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 15px;
    position: relative;
    margin-bottom: 10px;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background-color: var(--white);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

/* 按钮样式 */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 980px;
    font-weight: 400;
    font-size: 1.1rem;
    transition: var(--transition);
    text-align: center;
    letter-spacing: -0.01em;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn.primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.2);
}

.btn.secondary {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
}

.btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 优势和解决方案部分 */
.advantages-section,
.solutions-section {
    background-color: var(--light-gray);
}

.advantages-grid,
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advantage-item,
.solution-item {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.advantage-item:hover,
.solution-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.advantage-item i,
.solution-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.advantage-item h3,
.solution-item h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* 产品展示部分 */
.products-section {
    background-color: var(--white);
}

.product-showcase {
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-info {
    padding: 3rem;
}

.product-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    margin: 2rem 0;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-list i {
    color: var(--primary-color);
}

/* 关于我们部分 */
.about-section {
    background-color: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text .highlight {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

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

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

.stat-label {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

/* 联系部分 */
.contact-section {
    background-color: var(--light-gray);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.info-item h4 {
    margin-bottom: 0.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

/* 页脚 */
footer {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 4rem 5% 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    width: 150px;
    height: auto;
    filter: brightness(0) invert(1);
}

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

.link-group h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.link-group a {
    display: block;
    margin-bottom: 1rem;
    opacity: 0.8;
    transition: var(--transition);
}

.link-group a:hover {
    opacity: 1;
    color: var(--primary-color);
}

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

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

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

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

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

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

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

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

/* 渐变背景动画 */
.gradient-bg {
    background: linear-gradient(-45deg, #0071e3, #40c8e0, #5ac8fa, #34aadc);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* 元素进入视口时的动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero .tagline {
        font-size: 1.5rem;
    }
    
    .product-card {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 1rem;
        box-shadow: var(--shadow);
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul.active {
        display: flex;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .tagline {
        font-size: 1.2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .logo-container {
        max-width: 200px;
    }
    
    .text-logo {
        font-size: clamp(1rem, 3.5vw, 1.8rem);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .tagline {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .logo-container {
        max-width: 150px;
    }
    
    .text-logo {
        font-size: clamp(0.9rem, 3vw, 1.5rem);
    }
}

.logo-container {
    display: flex;
    align-items: center;
}

.text-logo {
    font-family: 'Righteous', cursive;
    font-size: clamp(1.2rem, 4vw, 2rem);
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: capitalize;
    font-weight: bold;
    transition: transform 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

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

.footer-text-logo {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
    max-width: 250px;
}
