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

:root {
    --primary-color: #0066cc;
    --secondary-color: #00a8e8;
    --accent-color: #ff6b35;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* 导航栏 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo i {
    font-size: 32px;
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    display: block;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.logo-kr {
    font-size: 14px;
    color: var(--text-light);
    font-weight: normal;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-item a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item a:hover {
    color: var(--primary-color);
}

.nav-item.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 280px;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 10px 0;
    margin-top: 5px;
    z-index: 1000;
}

.nav-item.dropdown {
    position: relative;
}

.nav-item.dropdown:hover .dropdown-content {
    display: block;
}

/* 增加hover区域，防止鼠标移动时断开 */
.nav-item.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-content a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login {
    padding: 8px 20px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-login:hover {
    background: var(--primary-color);
    color: #fff;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.language-selector:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.language-selector i {
    font-size: 16px;
    color: var(--text-dark);
}

.language-selector select {
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-dark);
    padding: 4px 8px;
    min-width: 120px;
    outline: none;
}

.language-selector select option {
    padding: 8px 12px;
    font-size: 15px;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::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 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: #fff;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--accent-color);
    color: #fff;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

.btn-gray {
    background: #6c757d;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-gray:hover {
    transform: none;
    box-shadow: none;
    background: #6c757d;
    color: #fff;
}

.floating-card {
    position: absolute;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 48px;
}

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

/* 产品区域 */
.products-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 50px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 102, 204, 0.2);
}

.product-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.product-icon i {
    font-size: 40px;
    color: #fff;
}

.product-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.product-card > p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.feature-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.feature-list i {
    color: var(--success-color);
    font-size: 18px;
}

.btn-outline {
    width: 100%;
    padding: 12px 25px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 500px;
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close:hover {
    color: var(--danger-color);
}

.detection-tool h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.detection-tool input,
.detection-tool textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.detection-tool input:focus,
.detection-tool textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.detection-result {
    margin-top: 30px;
    padding: 20px;
    border-radius: 10px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.result-safe {
    background: #d4edda;
    border: 2px solid var(--success-color);
    color: #155724;
}

.result-warning {
    background: #fff3cd;
    border: 2px solid var(--warning-color);
    color: #856404;
}

.result-danger {
    background: #f8d7da;
    border: 2px solid var(--danger-color);
    color: #721c24;
}

/* 解决方案 */
.solutions-section {
    padding: 80px 0;
    background: #fff;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.solution-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.solution-card:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
}

.solution-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.solution-card:hover i {
    color: #fff;
}

.solution-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* 任务中心 */
.tasks-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.tasks-section .section-title,
.tasks-section .section-subtitle {
    color: #fff;
}

.tasks-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.stat-card i {
    font-size: 48px;
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
}

.tasks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    align-items: start;
}

.task-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    color: var(--text-dark);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
}

.task-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.task-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.task-badge.daily {
    background: #e3f2fd;
    color: #1976d2;
}

.task-badge.weekly {
    background: #f3e5f5;
    color: #7b1fa2;
}

.task-badge.special {
    background: #fff3e0;
    color: #e65100;
}

.task-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    margin-top: 10px;
}

.task-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.task-reward {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 20px;
    margin-top: auto;
}

.btn-task {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-task:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.4);
}

.task-progress {
    margin-top: 15px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), #4caf50);
    transition: width 0.5s ease;
}

/* 统计数据 */
.stats-section {
    padding: 80px 0;
    background: var(--dark-bg);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.stat-item p {
    font-size: 18px;
    color: #bbb;
}

/* 客户支持 */
.support-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.support-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.support-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.support-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.support-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.support-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.support-link:hover {
    color: var(--secondary-color);
}

/* 页脚 */
.footer {
    background: var(--dark-bg);
    color: #fff;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-logo i {
    font-size: 32px;
    color: var(--secondary-color);
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.footer-col p {
    color: #bbb;
    margin-bottom: 20px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: #bbb;
}

.footer-info {
    margin-bottom: 10px;
}

.footer-certifications {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.footer-certifications span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #bbb;
    font-size: 14px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: var(--transition);
}

.footer-certifications span:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

.footer-certifications i {
    color: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .floating-card {
        display: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tasks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
    
    .language-selector {
        padding: 6px 10px;
        gap: 6px;
    }
    
    .language-selector select {
        font-size: 14px;
        min-width: 100px;
        padding: 3px 6px;
    }
    
    .language-selector i {
        font-size: 14px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .tasks-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 32px;
    }

    .footer-certifications {
        gap: 15px;
    }

    .footer-certifications span {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
