/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #000;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #000;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-link:hover {
    background: #f8f9fa;
    color: #000;
    transform: none;
}

.dropdown-link::after {
    display: none;
}

/* 移动端导航 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 首页横幅 */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #000;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: #666;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #000;
    color: #fff;
}

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: #000;
    border-color: #000;
}

.btn-secondary:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-2px);
}

/* 二维码轮播 */
.qr-carousel {
    position: relative;
    width: 300px;
    height: 400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.qr-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.qr-slide.active {
    opacity: 1;
}

.qr-container {
    text-align: center;
    padding: 30px;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.qr-placeholder {
    font-size: 80px;
    margin-bottom: 10px;
}

.qr-text {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.qr-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.qr-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.qr-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #000;
}

.dot:hover {
    background: #666;
}

/* 功能特色 */
.features {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #000;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fff;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #000;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 16px;
}

.feature-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* 产品展示 */
.products {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-placeholder {
    font-size: 64px;
}

.product-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin: 20px 20px 10px;
}

.product-card p {
    font-size: 16px;
    color: #666;
    margin: 0 20px 20px;
    line-height: 1.6;
}

.product-features {
    list-style: none;
    padding: 0 20px 20px;
}

.product-features li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #000;
    font-weight: bold;
}

/* 应用介绍 */
.applications {
    padding: 80px 0;
    background-color: #fff;
}

.applications-list {
    max-width: 800px;
    margin: 0 auto;
}

.application-item {
    padding: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.application-item:hover {
    border-color: #000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.application-item h3 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 16px;
}

.application-item p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.application-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-tag {
    background: #f0f0f0;
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* 技术架构 */
.tech-stack {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.tech-category {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tech-category h3 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
}

.tech-category ul {
    list-style: none;
}

.tech-category li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.tech-category li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #000;
    font-weight: bold;
}

/* 页脚 */
.footer {
    background-color: #000;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #fff;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info p {
    color: #ccc;
    margin-bottom: 5px;
    font-size: 14px;
}

.footer-contact p {
    color: #ccc;
    margin-bottom: 5px;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .qr-carousel {
        width: 250px;
        height: 350px;
    }

    .qr-code {
        width: 150px;
        height: 150px;
    }

    .qr-placeholder {
        font-size: 60px;
    }

    .features-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .stories-grid {
        grid-template-columns: 1fr;
    }

    .story-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .story-avatar {
        font-size: 40px;
    }

    /* 品牌页面移动端样式 */
    .brand-hero-container {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 30px !important;
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .brand-title {
        font-size: 36px;
    }

    .brand-subtitle {
        font-size: 28px;
    }

    .brand-slogan {
        font-size: 18px;
    }

    .brand-description {
        font-size: 16px;
    }

    .brand-hero {
        padding: 100px 0 60px !important;
        min-height: auto !important;
    }

    .brand-features {
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }

    .feature-item {
        flex: 1;
        min-width: 120px;
        max-width: 150px;
        justify-content: center;
    }

    .brand-placeholder {
        width: 250px;
        height: 250px;
        max-width: 90vw;
        max-height: 90vw;
    }

    .brand-emoji {
        font-size: 60px;
    }

    .brand-info {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* 移动端下拉菜单样式 */
    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        margin-top: 10px !important;
    }

    .dropdown:hover .dropdown-menu {
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .feature-card,
    .product-card,
    .application-item {
        padding: 30px 20px;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
    }

    /* 超小屏幕品牌页面优化 */
    .brand-hero {
        padding: 80px 0 40px !important;
    }

    .brand-hero-container {
        padding: 0 10px !important;
        gap: 20px !important;
    }

    .brand-title {
        font-size: 28px !important;
        letter-spacing: 1px !important;
    }

    .brand-subtitle {
        font-size: 22px !important;
    }

    .brand-slogan {
        font-size: 16px !important;
    }

    .brand-description {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    .brand-features {
        gap: 10px !important;
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        min-width: 100px;
        max-width: 200px;
        width: 100%;
    }

    .brand-placeholder {
        width: 200px !important;
        height: 200px !important;
        max-width: 80vw !important;
        max-height: 80vw !important;
    }

    .brand-emoji {
        font-size: 50px !important;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.product-card,
.application-item {
    animation: fadeInUp 0.6s ease-out;
}

/* 成功案例样式 */
.success-stories {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.story-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.story-avatar {
    font-size: 48px;
    flex-shrink: 0;
}

.story-content {
    flex: 1;
}

.story-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.story-role {
    font-size: 16px;
    color: #666;
    margin-bottom: 12px;
    font-weight: 600;
}

.story-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.story-quote {
    font-style: italic;
    color: #333;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #000;
    font-size: 13px;
    line-height: 1.5;
}

/* 品牌页面样式 */
.brand-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.brand-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.brand-info {
    max-width: 600px;
}

.brand-logo {
    margin-bottom: 30px;
}

.brand-title {
    font-size: 48px;
    font-weight: 800;
    color: #000;
    margin-bottom: 8px;
    line-height: 1.2;
    letter-spacing: 2px;
}

.brand-subtitle {
    font-size: 36px;
    font-weight: 700;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.2;
}

.brand-slogan {
    font-size: 20px;
    color: #888;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 0;
}

.brand-description {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.brand-features {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 20px;
}

.feature-text {
    font-weight: 600;
    font-size: 14px;
}

.brand-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border: 3px solid #000;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.brand-emoji {
    font-size: 80px;
    margin-bottom: 20px;
}

.brand-placeholder p {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* 下拉菜单激活状态 */
.dropdown-link.active {
    background: #000;
    color: #fff;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}
