/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 背景动画 */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 泼墨效果背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* 浮动粒子效果 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: float 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: 1rem 0;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

/* 头部装饰性元素 */
.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255,255,255,0.05) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

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

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.9;
}

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

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav a:hover {
    opacity: 0.8;
}

/* 主要内容区域 */
.main {
    min-height: calc(100vh - 200px);
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: left;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-icons {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.icon {
    font-size: 4rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 50%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.3);
    animation: float 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(255,255,255,0.1), transparent);
    animation: rotate 3s linear infinite;
}

.icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.icon:nth-child(2) {
    animation-delay: 1s;
}

.icon:nth-child(3) {
    animation-delay: 2s;
}

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

/* 艺术性装饰元素 */
.artistic-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 泼墨效果 */
.ink-splash {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: inkSpread 4s ease-in-out infinite;
}

.ink-1 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.ink-2 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.4) 0%, transparent 70%);
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

.ink-3 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.3) 0%, transparent 70%);
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

@keyframes inkSpread {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.6; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
}

/* 几何形状 */
.geometric-shape {
    position: absolute;
    opacity: 0.4;
    animation: geometricFloat 6s ease-in-out infinite;
}

.shape-1 {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(102, 126, 234, 0.3));
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 30%;
    right: 20%;
    animation-delay: 0.5s;
}

.shape-2 {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, rgba(118, 75, 162, 0.3), rgba(255, 255, 255, 0.2));
    border-radius: 50%;
    bottom: 30%;
    right: 30%;
    animation-delay: 1.5s;
}

@keyframes geometricFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* 特色区域 */
.features {
    padding: 4rem 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.feature-link:hover {
    color: #764ba2;
}

/* 新闻区域 */
.news {
    padding: 4rem 0;
    background: #f8f9fa;
}

.news h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #333;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
}

.news-date {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.news-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.news-item p {
    color: #666;
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, rgba(51, 51, 51, 0.95) 0%, rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    opacity: 0.8;
}

/* 响应式设计 */

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }
}

/* 移动设备 (768px 以下) */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header {
        padding: 0.8rem 0;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .header .container {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0.8rem 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 0.1rem;
    }
    
    .logo p {
        font-size: 0.85rem;
        text-align: center;
    }
    
    .nav ul {
        gap: 1rem;
        flex-wrap: nowrap;
        justify-content: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 0 0.5rem 0;
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .nav ul::-webkit-scrollbar {
        display: none;
    }
    
    .nav li {
        flex-shrink: 0;
    }
    
    .nav a {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
        border-radius: 20px;
        background: rgba(255,255,255,0.1);
        white-space: nowrap;
        min-width: 80px;
        text-align: center;
        display: block;
    }
    
    .hero {
        padding: 2.5rem 0;
        margin-top: 0;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .hero-content p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        text-align: center;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        margin-top: 1.5rem;
    }
    
    .tech-icons {
        margin-top: 2rem;
        gap: 1.5rem;
    }
    
    .icon {
        font-size: 3rem;
        padding: 1rem;
    }
    
    .features-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features {
        padding: 3rem 0;
    }
    
    .features h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    /* 移动端卡片优化 */
    .feature-card {
        padding: 1.5rem;
        margin: 0;
        border-radius: 15px;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .feature-card p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    /* 移动端按钮优化 */
    .btn {
        padding: 14px 28px;
        font-size: 0.9rem;
        margin: 0.25rem 0;
        min-width: 200px;
        width: 100%;
        max-width: 280px;
        text-align: center;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* 移动端艺术元素调整 */
    .ink-splash {
        opacity: 0.3;
    }
    
    .ink-1, .ink-2, .ink-3 {
        width: 60px;
        height: 60px;
    }
    
    .geometric-shape {
        opacity: 0.2;
    }
    
    .shape-1, .shape-2 {
        width: 30px;
        height: 30px;
    }
    
    /* 页脚优化 */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer p, .footer li {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* 小屏幕设备 (480px 以下) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .header {
        padding: 0.6rem 0;
    }
    
    .header .container {
        padding: 0.6rem 0;
        gap: 0.6rem;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .logo p {
        font-size: 0.8rem;
    }
    
    .nav ul {
        gap: 0.8rem;
        padding: 0 0 0.3rem 0;
    }
    
    .nav a {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        min-width: 70px;
    }
    
    .hero {
        padding: 1.8rem 0;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1.2rem;
        max-width: 95%;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
        margin-top: 1.2rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
        min-width: 180px;
        width: 100%;
        max-width: 260px;
        min-height: 46px;
    }
    
    .tech-icons {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .icon {
        font-size: 2.5rem;
        padding: 0.8rem;
    }
    
    .features {
        padding: 2rem 0;
    }
    
    .features h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .features-grid {
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.2rem;
        margin: 0;
        border-radius: 12px;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .feature-link {
        font-size: 0.85rem;
    }
    
    /* 小屏幕艺术元素优化 */
    .ink-splash {
        opacity: 0.2;
    }
    
    .ink-1, .ink-2, .ink-3 {
        width: 40px;
        height: 40px;
    }
    
    .geometric-shape {
        opacity: 0.1;
    }
    
    .shape-1, .shape-2 {
        width: 20px;
        height: 20px;
    }
    
    /* 页脚优化 */
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .footer p, .footer li {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .footer-bottom {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* 超小屏幕设备 (360px 以下) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .logo p {
        font-size: 0.75rem;
    }
    
    .nav a {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        min-width: 60px;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
        line-height: 1.1;
    }
    
    .hero-content p {
        font-size: 0.85rem;
        line-height: 1.3;
        max-width: 100%;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.8rem;
        min-width: 160px;
        max-width: 240px;
        min-height: 44px;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-card h3 {
        font-size: 1rem;
    }
    
    .feature-card p {
        font-size: 0.85rem;
    }
    
    .icon {
        font-size: 2rem;
        padding: 0.6rem;
    }
    
    /* 隐藏超小屏幕的艺术元素 */
    .artistic-elements {
        display: none;
    }
}

/* 移动端通用优化 */
@media (max-width: 768px) {
    /* 触摸友好的按钮 */
    .btn {
        min-height: 44px; /* iOS 推荐的最小触摸目标 */
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* 改善文字可读性 */
    body {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* 优化链接点击区域 */
    .nav a, .feature-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 改善卡片触摸体验 */
    .feature-card {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* 优化滚动体验 */
    .main {
        -webkit-overflow-scrolling: touch;
    }
    
    /* 防止水平滚动 */
    body {
        overflow-x: hidden;
    }
    
    /* 优化艺术元素在移动端的性能 */
    .artistic-elements {
        will-change: transform;
        transform: translateZ(0);
    }
    
    .ink-splash, .geometric-shape {
        will-change: transform;
        transform: translateZ(0);
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .tech-icons {
        margin-top: 1rem;
    }
    
    .features {
        padding: 2rem 0;
    }
}

