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

/* 移除调试边框和不需要的边框 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 移除所有可能的调试边框 */
*:focus {
    outline: none !important;
}

/* 移除联系部分的任何额外边框 */
.contact-section {
    border: none !important;
    outline: none !important;
}

.contact-content {
    border: none !important;
    outline: none !important;
}

.contact-info {
    border: none !important;
    outline: none !important;
}

/* 确保没有意外的边框 */
section {
    border: none !important;
    outline: none !important;
}

.container {
    border: none !important;
    outline: none !important;
}

/* 基础样式 */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    overflow-x: hidden;
}

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: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
}

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

/* 头部导航 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.nav {
    position: relative;
    z-index: 10;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 40px;
    width: auto;
    max-width: 100%;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 主要内容区域 */
.hero {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 80px);
    text-align: center;
    color: #ffffff;
    padding: 2rem 0;
}

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

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.4;
}

.hero-description {
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    opacity: 0.8;
    line-height: 1.8;
}

/* 按钮样式 */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    padding: 0.5rem 0;
}

.btn {
    display: inline-block;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.2rem, 3vw, 1.5rem);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.85rem, 2.2vw, 0.95rem);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    min-height: 44px; /* 触摸设备最小触摸目标 */
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 120px;
}

.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(45deg, #ff6b6b, #ee5a24);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.btn-secondary {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

.btn-secondary:hover,
.btn-secondary:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.6);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover,
.btn-outline:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-link {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.btn-link:hover,
.btn-link:focus {
    color: #ffffff;
}

/* 特色功能网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding: 0.5rem 0;
    max-width: 100%;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* 关于我们部分 */
.about-section {
    padding: clamp(3rem, 8vw, 5rem) 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.about-text p {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #666;
}

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

.stat-item {
    text-align: center;
    padding: clamp(1.5rem, 4vw, 2rem);
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-weight: 500;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* 特色部分 */
.features-section {
    padding: clamp(3rem, 8vw, 5rem) 0;
    background: #ffffff;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
}

.feature-card {
    background: #ffffff;
    padding: clamp(2rem, 5vw, 2.5rem);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-card .feature-icon {
    font-size: clamp(2.5rem, 6vw, 3rem);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: clamp(1.3rem, 3.5vw, 1.5rem);
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* 联系我们部分 */
.contact-section {
    padding: clamp(3rem, 8vw, 5rem) 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
    padding: 0.5rem 0;
    max-width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: clamp(1.5rem, 4vw, 2rem);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 80px;
}

.contact-icon {
    font-size: clamp(1.5rem, 4vw, 2rem);
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.contact-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: #ffffff;
    padding: clamp(2rem, 5vw, 3rem) 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

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

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    padding: 0.25rem 0;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: clamp(0.8rem, 2.5vw, 1rem);
}

/* 响应式设计 - 大屏幕 */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
}

/* 响应式设计 - 桌面端 */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .nav-container {
        padding: 0 30px;
    }
}

/* 响应式设计 - 平板端 */
@media (max-width: 1024px) {
    .hero-buttons {
        gap: 1.5rem;
    }
    
    .btn {
        padding: 1rem 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

/* 响应式设计 - 平板端竖屏 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        justify-content: center;
        padding: 0.5rem 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        font-size: 0.9rem;
        padding: 1rem 1.5rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem 1rem;
    }
    
    .feature-item {
        min-height: 180px;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero {
        padding: 1rem 0;
    }
    
    .hero-container {
        padding: 0 15px;
    }
}

/* 响应式设计 - 手机端 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .feature-card,
    .feature-item {
        padding: 1.5rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .hero-buttons {
        gap: 1rem;
        padding: 0.5rem 0.5rem;
    }
    
    .btn {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }
    
    .hero-description {
        margin-bottom: 2rem;
    }
    
    .features-grid {
        margin-top: 2rem;
        gap: 1rem;
        padding: 0.5rem 0.5rem;
    }
    
    .feature-item {
        padding: 1.5rem;
        min-height: 160px;
    }
    
    .contact-info {
        gap: 1rem;
        padding: 0.5rem 0.5rem;
    }
    
    .contact-item {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        min-height: 100px;
    }
}

/* 响应式设计 - 小屏手机 */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        gap: 0.8rem;
        padding: 0.5rem 0.3rem;
    }
    
    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
        max-width: 250px;
    }
    
    .feature-card {
        padding: 1.2rem;
    }
    
    .feature-item {
        padding: 1.2rem;
    }
    
    .contact-info {
        gap: 0.8rem;
        padding: 0.5rem 0.3rem;
    }
    
    .contact-item {
        padding: 1.2rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .hero-container {
        padding: 0 10px;
    }
}

/* 响应式设计 - 超小屏手机 */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
        max-width: 200px;
    }
    
    .feature-item,
    .feature-card {
        padding: 1rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .container {
        padding: 0 8px;
    }
    
    .nav-container {
        padding: 0 8px;
    }
    
    .hero-container {
        padding: 0 8px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .feature-item:hover,
    .feature-card:hover,
    .stat-item:hover {
        transform: none;
    }
    
    .nav-link:hover::after {
        width: 0;
    }
    
    .btn {
        min-height: 48px; /* 更大的触摸目标 */
    }
    
    .nav-link {
        padding: 0.8rem 0;
    }
    
    /* 移动端触摸优化 */
    .btn:active {
        transform: scale(0.98);
    }
    
    .feature-item:active,
    .feature-card:active {
        transform: scale(0.98);
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-title {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* 打印样式 */
@media print {
    .header {
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .btn {
        border: 1px solid #000000 !important;
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .feature-item,
    .feature-card {
        border: 1px solid #cccccc !important;
        background: #ffffff !important;
        color: #000000 !important;
    }
}

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

.feature-item,
.feature-card,
.stat-item {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
}

/* 焦点样式 - 无障碍访问 */
.btn:focus,
.nav-link:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* 减少动画 - 用户偏好 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .btn::before {
        display: none;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    
    .about-section {
        background: #2a2a2a;
    }
    
    .features-section {
        background: #1a1a1a;
    }
    
    .feature-card {
        background: #2a2a2a;
        border-color: #404040;
    }
    
    .stat-item {
        background: #2a2a2a;
    }
}

/* 移除所有可能的红色边框和调试元素 */
* {
    border-color: transparent !important;
}

/* 移除任何可能的调试边框 */
[style*="border"] {
    border: none !important;
}

[style*="outline"] {
    outline: none !important;
}

/* 确保联系部分没有任何边框 */
#contact,
.contact-section,
.contact-content,
.contact-info,
.contact-item {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* 移除任何可能的红色元素 */
[style*="red"],
[style*="#ff0000"],
[style*="#f00"] {
    border: none !important;
    outline: none !important;
    background: transparent !important;
}

/* 完全移除水平滚动 */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* 确保所有容器不会溢出 */
.container,
.nav-container,
.hero-container,
.contact-content {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* 移除所有可能的滚动条 */
* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
    display: none !important;
}