/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #1abc9c;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --gray-color: #95a5a6;
    --border-color: #e0e6ed;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    box-shadow: var(--shadow);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #34495e);
}

.btn-secondary:hover {
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.3);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color), #16a085);
}

.btn-accent:hover {
    box-shadow: 0 8px 20px rgba(26, 188, 156, 0.3);
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray-color);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 0 auto 30px;
    border-radius: 2px;
}

/* 顶部导航栏 */
header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.logo-text span {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 5px 0;
    position: relative;
    transition: var(--transition);
}

nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transition: var(--transition);
    border-radius: 1.5px;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
}

nav a:hover:after, nav a.active:after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 20px;
    background-color: #f5f7fa;
    transition: var(--transition);
    position: relative;
}

.language-selector:hover {
    background-color: #eef1f5;
}

.language-selector i {
    color: var(--primary-color);
}

.language-selector .lang-text {
    font-weight: 600;
    color: var(--secondary-color);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    padding: 10px 0;
    display: none;
    z-index: 1001;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.language-option:hover {
    background-color: #f5f7fa;
}

.language-option.active {
    background-color: #eef1f5;
    color: var(--primary-color);
    font-weight: 600;
}

.language-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
}

/* 英雄区域 */
.hero {
    padding-top: 180px;
    padding-bottom: 120px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(26, 188, 156, 0.05) 100%);
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 550px;
    z-index: 0;
}

.hero-image-placeholder {
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    height: 400px;
    display: flex;
    flex-direction: column;  /* 添加这一行确保垂直布局 */
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    border-radius: 10px;
    text-align: center;
    padding: 30px;
}

.hero-image-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #3498db;
}

.hero-image-placeholder h3 {
    margin-bottom: 15px;
    font-size: 1.8rem; /* 可选：增加标题字体大小 */
}

.hero-image-placeholder p {
    font-size: 1.2rem; /* 可选：调整描述字体大小 */
    max-width: 80%; /* 可选：限制描述文字宽度 */
    line-height: 1.5;
}

/* 功能特点部分 */
.features {
    background-color: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #f8fafc;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.feature-icon i {
    font-size: 1.8rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray-color);
    line-height: 1.7;
}

/* IP管理部分 */
.ip-management {
    background-color: #f8fafc;
}

.ip-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.ip-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.ip-image-placeholder {
    background: linear-gradient(135deg, #1abc9c, #16a085);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 10px;
    text-align: center;
    padding: 30px;
}

.ip-image-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.ip-image-placeholder h3 {
    margin-bottom: 15px;
}

.ip-text {
    flex: 1;
}

.ip-text h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.ip-text p {
    color: var(--gray-color);
    margin-bottom: 25px;
    line-height: 1.8;
}

.ip-list {
    list-style: none;
    margin-top: 30px;
}

.ip-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.ip-list i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* 下载页面样式 */
.download-hero {
    padding-top: 160px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    text-align: center;
}

.download-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.download-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.download-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.os-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.card-header h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.card-header p {
    color: var(--gray-color);
}

.card-body {
    padding: 30px;
}

.file-size {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    color: var(--secondary-color);
    font-weight: 600;
}

.file-size i {
    color: var(--accent-color);
}

.requirements {
    list-style: none;
    margin-bottom: 30px;
}

.requirements li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    color: var(--gray-color);
}

.requirements li:last-child {
    border-bottom: none;
}

.requirements i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* 文档页面样式 */
.docs-hero {
    padding-top: 160px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    color: white;
    text-align: center;
}

.docs-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.docs-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.docs-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.docs-search input {
    width: 100%;
    padding: 18px 25px;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.docs-search button {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 10px 25px;
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
}

.docs-container {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.docs-sidebar {
    flex: 0 0 280px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 30px;
    height: fit-content;
}

.docs-nav h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.docs-nav ul {
    list-style: none;
}

.docs-nav li {
    margin-bottom: 15px;
}

.docs-nav a {
    color: var(--gray-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    transition: var(--transition);
}

.docs-nav a:hover, .docs-nav a.active {
    background-color: #f5f7fa;
    color: var(--primary-color);
}

.docs-nav i {
    font-size: 1.2rem;
}

.docs-content {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 40px;
}

.docs-section {
    margin-bottom: 50px;
}

.docs-section:last-child {
    margin-bottom: 0;
}

.docs-section h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.docs-section h3 {
    color: var(--primary-color);
    margin: 25px 0 15px;
}

.docs-section p {
    color: var(--gray-color);
    margin-bottom: 20px;
    line-height: 1.8;
}

.docs-section ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.docs-section li {
    color: var(--gray-color);
    margin-bottom: 10px;
    line-height: 1.7;
}

.info-box {
    background-color: #f0f7ff;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.info-box h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.info-box p {
    margin-bottom: 0;
}

/* 页脚样式 */
footer {
    background-color: var(--secondary-color);
    color: #bdc3c7;
    padding: 70px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.footer-column p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2rem;
    margin-top: 3px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    font-size: 0.9rem;
    color: #95a5a6;
}

/* 页面切换动画 */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-content {
        max-width: 500px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-image {
        width: 40%;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 15px 0;
    }
    
    nav ul {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding-top: 150px;
        padding-bottom: 80px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        display: none;
    }
    
    .hero:before {
        display: none;
    }
    
    .hero-btns {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .ip-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .ip-image, .ip-text {
        width: 100%;
    }
    
    .docs-container {
        flex-direction: column;
    }
    
    .docs-sidebar {
        flex: none;
        width: 100%;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .download-hero h1, .docs-hero h1 {
        font-size: 2.2rem;
    }
    
    .feature-card, .download-card {
        padding: 30px 20px;
    }
    
    .card-header, .card-body {
        padding: 20px;
    }

}

/* 自定义弹窗样式 */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.custom-modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 25px;
    background: linear-gradient(135deg, #3498db, #1abc9c);
    color: white;
    text-align: center;
}

.modal-header h3 {
    font-size: 1.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-body {
    padding: 35px 30px;
    text-align: center;
}

.modal-icon {
    font-size: 3.5rem;
    color: #f39c12;
    margin-bottom: 20px;
}

.modal-body p {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 25px;
    line-height: 1.6;
}

.modal-footer {
    padding: 20px 30px 30px;
    text-align: center;
}

.modal-btn {
    padding: 12px 40px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}