/* 共享样式文件 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 80px; /* 为固定头部留出空间 */
    min-height: 100vh;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    padding: 1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.logo-icon {
    width: 30px;
    height: 30px;
    background: none;
    border-radius: 5px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.nav {
    display: flex;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    gap: 0;
    width: 380px;
    height: 50px;
    align-items: center;
    justify-content: center;
}

.nav a {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    position: relative;
    font-size: 0.95rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav a:hover {
    color: #374151;
}

.nav a.active {
    color: #1f2937;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-selector {
    display: flex;
    align-items: center;
}

.language-toggle {
    display: flex;
    background: #e5e7eb;
    border-radius: 25px;
    padding: 4px;
    position: relative;
    overflow: hidden;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    min-width: 100px;
    justify-content: center;
}

.language-option.active {
    background: white;
    color: #374151;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.language-option:hover:not(.active) {
    color: #374151;
}

.flag {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.flag-uk {
    background: url('img/english.png') center/cover no-repeat;
    position: relative;
}


.flag-indonesia {
    background: url('img/id.png') center/cover no-repeat;
}

/* Footer */
.footer {
    background: url('img/foot-backend.png') center/cover no-repeat fixed;
    color: #1f2937;
    padding: 4rem 2rem;
    margin-top: 4rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-navigation {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-weight: bold;
    white-space: nowrap;
}

.footer-navigation a {
    color: #1f2937;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.footer-navigation a:hover {
    color: #374151;
}

.footer-navigation .security-center-link {
    font-size: 1.2rem;
    font-weight: bold;
}


.footer-resource {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-weight: bold;
}

.footer-resource span {
    font-weight: bold;
}

.footer-resource a {
    color: #1f2937;
    text-decoration: none;
    font-weight: normal;
}

.footer-support {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-weight: bold;
}

.footer-support a {
    color: #1f2937;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.footer-support a:hover {
    color: #374151;
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.footer-logo .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
}

.footer-logo .logo-icon {
    width: 30px;
    height: 30px;
    background: none;
    border-radius: 0;
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    font-weight: bold;
    font-size: 1.5rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact a {
    color: #1f2937;
    text-decoration: underline;
    font-weight: normal;
}

.footer-contact p {
    color: #1f2937;
    font-weight: normal;
    margin: 0;
}

/* 通用按钮样式 */
.btn {
    background: #000;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    background: #333;
}

.btn-primary {
    background: #007bff;
}

.btn-primary:hover {
    background: #0056b3;
}

/* 通用卡片样式 */
.card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

/* 通用容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    margin-bottom: 4rem;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav {
        order: 3;
        width: 100%;
        max-width: 380px;
        height: auto;
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .nav a {
        text-align: center;
        padding: 0.75rem 1rem;
        height: auto;
    }
    
    .language-selector {
        order: 2;
    }
    
    .language-toggle {
        transform: scale(0.9);
    }
    
    .language-option {
        min-width: 80px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .logo {
        order: 1;
    }
    
    body {
        padding-top: 120px;
    }
    
    
    .footer-navigation {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .footer-resource {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .footer-support {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav a {
        text-align: center;
    }
    
    body {
        padding-top: 160px;
    }
    
}
