/* 全局样式重置和变量定义 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a3a5f;
    --secondary: #2c5282;
    --accent: #0ea5e9;
    --accent-light: #38bdf8;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --text: #334155;
    --text-light: #64748b;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-light));
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* 响应式字体大小 */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    background: var(--darker);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 粒子背景效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, var(--darker), #1e293b);
}

/* 容器和布局 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 0.75rem;
    }
}

.section {
    padding: 6.25rem 0;
    position: relative;
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 0;
    }
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
}

@media (max-width: 768px) {
    .navbar .container {
        padding: 0.5rem 1rem;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
    display: flex;
    align-items: center;
    z-index: 1001;
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }
}

.logo-img {
    height: 2.5rem;
    width: auto;
    max-width: 9.375rem;
    margin-right: 0.625rem;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo-img {
        height: 2rem;
        max-width: 7.5rem;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    align-items: center;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-size: 1rem;
    padding: 0.5rem 0;
}

@media (max-width: 768px) {
    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem 0;
    }
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -0.3125rem;
    left: 0;
    width: 0;
    height: 0.125rem;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 汉堡菜单按钮 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 1.5rem;
    height: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 0.2rem;
    background: var(--light);
    transition: all 0.3s ease;
    border-radius: 0.1rem;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.3rem, 0.3rem);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.3rem, -0.3rem);
}

/* 英雄区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.9));
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 70vh;
        padding: 1.5rem 0;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.1), transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .hero-content {
        padding: 1rem 0;
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(14, 165, 233, 0.5); }
    to { text-shadow: 0 0 30px rgba(14, 165, 233, 0.8); }
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 37.5rem;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .hero p {
        font-size: 1.1rem;
        margin: 0 auto 2rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero p {
        font-size: 1rem;
        margin: 0 auto 1.5rem;
        padding: 0 0.5rem;
    }
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 1rem;
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}

.btn {
    padding: 0.875rem 1.75rem;
    border-radius: 3.125rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    min-width: 8.75rem;
    text-align: center;
    display: inline-block;
}

@media (max-width: 480px) {
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        min-width: 7.5rem;
        width: 100%;
        max-width: 12.5rem;
    }
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 0.625rem 1.875rem rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-0.1875rem);
    box-shadow: 0 0.9375rem 2.5rem rgba(14, 165, 233, 0.4);
}

@media (max-width: 480px) {
    .btn-primary:hover {
        transform: translateY(-0.125rem);
    }
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 0.125rem solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

/* 产品展示区域 */
.products {
    background: linear-gradient(180deg, var(--darker), #1e293b);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
}

.section-title::after {
    content: '';
    display: block;
    width: 6.25rem;
    height: 0.25rem;
    background: var(--gradient-accent);
    margin: 1rem auto;
    border-radius: 0.125rem;
}

@media (max-width: 768px) {
    .section-title::after {
        width: 5rem;
        margin: 0.75rem auto;
    }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(21.875rem, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .product-grid {
        gap: 1rem;
        padding: 0 0.25rem;
    }
}

.product-card {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 1.25rem;
    padding: 2rem;
    backdrop-filter: blur(0.625rem);
    border: 0.0625rem solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .product-card {
        padding: 1.5rem;
        border-radius: 1rem;
    }
}

@media (max-width: 480px) {
    .product-card {
        padding: 1.25rem;
        border-radius: 0.875rem;
    }
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.1), transparent);
    transition: left 0.5s ease;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    transform: translateY(-0.625rem);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .product-card:hover {
        transform: translateY(-0.3125rem);
    }
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    display: inline-block;
}

@media (max-width: 768px) {
    .product-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
}

.product-card h3 {
    font-size: 1.375rem;
    margin-bottom: 0.875rem;
    color: var(--light);
    line-height: 1.3;
}

@media (max-width: 768px) {
    .product-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
}

.product-card p {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .product-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

.feature-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .feature-list {
        margin-bottom: 1.25rem;
    }
}

.feature-list li {
    padding: 0.375rem 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .feature-list li {
        font-size: 0.85rem;
        padding: 0.25rem 0;
    }
}

.feature-list li::before {
    content: '✓';
    color: var(--accent);
    margin-right: 0.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* 服务区域 */
.services {
    background: var(--darker);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
        padding: 0 0.25rem;
    }
}

.service-card {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 0.9375rem;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(0.625rem);
    border: 0.0625rem solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    min-height: 12.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .service-card {
        padding: 1.25rem;
        border-radius: 0.75rem;
        min-height: 11.25rem;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 1rem;
        border-radius: 0.625rem;
        min-height: 10rem;
    }
}

.service-card:hover {
    transform: translateY(-0.3125rem);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .service-card:hover {
        transform: translateY(-0.1875rem);
    }
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 0.875rem;
    display: inline-block;
}

@media (max-width: 768px) {
    .service-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--light);
    line-height: 1.3;
}

@media (max-width: 768px) {
    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.625rem;
    }
}

@media (max-width: 480px) {
    .service-card h3 {
        font-size: 1rem;
    }
}

.service-card p {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .service-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* 页脚 */
.footer {
    background: rgba(2, 6, 23, 0.9);
    padding: 2.5rem 0 0.875rem;
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 0.75rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0 0.625rem;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: 1.25rem;
    }
}

.footer-section h3 {
    margin-bottom: 0.875rem;
    font-size: 1.1rem;
    color: var(--light);
}

@media (max-width: 768px) {
    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
}

.footer-section p {
    color: var(--text-light);
    margin-bottom: 0.375rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-section p {
        font-size: 0.85rem;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        padding-top: 1.25rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .footer-bottom {
        padding-top: 1rem;
        font-size: 0.75rem;
    }
}

/* 详情页样式 */
.product-detail-header {
    text-align: center;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .product-detail-header {
        margin-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    .product-detail-header {
        margin-bottom: 2rem;
    }
}

.product-icon-large {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

@media (max-width: 768px) {
    .product-icon-large {
        font-size: 4rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .product-icon-large {
        font-size: 3rem;
        margin-bottom: 0.75rem;
    }
}

.product-detail-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--light);
}

@media (max-width: 768px) {
    .product-detail-header h2 {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .product-detail-header h2 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
}

.product-description {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .product-description {
        font-size: 1.1rem;
        padding: 0 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .product-description {
        font-size: 1rem;
        padding: 0 0.5rem;
        line-height: 1.5;
    }
}

.product-features {
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .product-features {
        margin-bottom: 3rem;
    }
}

.product-features h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--light);
}

@media (max-width: 768px) {
    .product-features h3 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .product-features h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .features-grid {
        gap: 1rem;
        padding: 0 0.25rem;
    }
}

.feature-item {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .feature-item {
        padding: 1.5rem;
        border-radius: 0.75rem;
    }
}

@media (max-width: 480px) {
    .feature-item {
        padding: 1.25rem;
        border-radius: 0.625rem;
    }
}

.feature-item:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .feature-item:hover {
        transform: translateY(-2px);
    }
}

.feature-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--light);
}

@media (max-width: 768px) {
    .feature-item h4 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .feature-item p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

.product-advantages {
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .product-advantages {
        margin-bottom: 3rem;
    }
}

.product-advantages h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--light);
}

@media (max-width: 768px) {
    .product-advantages h3 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
}

.advantages-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .advantages-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
}

.advantage-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .advantage-item {
        padding: 0.75rem;
        border-radius: 0.5rem;
    }
}

.advantage-icon {
    color: var(--accent);
    margin-right: 0.5rem;
    font-weight: bold;
    font-size: 1.2rem;
}

.product-cta {
    text-align: center;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .product-cta {
        margin-top: 2rem;
    }
}

.product-cta .btn {
    margin: 0 0.5rem;
}

@media (max-width: 480px) {
    .product-cta .btn {
        margin: 0.5rem 0;
        width: 100%;
        max-width: 12.5rem;
    }
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 移动端触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .product-card:hover {
        transform: none;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .service-card:hover {
        transform: none;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .feature-item:hover {
        transform: none;
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* 防止移动端页面缩放 */
input, textarea, select {
    font-size: 16px;
}

/* 移动端滚动优化 */
@media (max-width: 768px) {
    html {
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
    }
}