/* 基础样式 */
@font-face {
	font-family: 'OPPOSans';
	src: url('/static/fonts/OPPOSANS-L.TTF') format('truetype');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'OPPOSans';
	src: url('/static/fonts/OPPOSANS-R.TTF') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'OPPOSans';
	src: url('/static/fonts/OPPOSANS-M.TTF') format('truetype');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'OPPOSans';
	src: url('/static/fonts/OPPOSANS-B.TTF') format('truetype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'OPPOSans';
	src: url('/static/fonts/OPPOSANS-H.TTF') format('truetype');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'OPPOSans', 'Microsoft YaHei', Arial, sans-serif;
}

body {
    margin: 0;
	padding: 0;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
	font-family: 'OPPOSans', 'Microsoft YaHei', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.page-header {
    text-shadow: 2px 2px 40px rgba(0, 0, 0, 1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand { 
    display: flex;
    align-items: center;
}

.navbar-logo {
    width: 80px;
}

.nav-brand h2 {
    font-size: 1.8rem;
    color: #0066cc;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a:hover {
    color: #0066cc;
}

.nav-menu a.active {
    color: #0066cc;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0066cc;
}

/* 语言选择器样式 - 现代简约设计 */
.language-selector {
    margin-left: auto;
    position: relative;
    display: inline-block;
    z-index: 1001;
}

.language-selector .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px; /* Pill shape */
    background: white;
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    min-width: 130px;
    max-width: 180px;
    justify-content: space-between;
}

.language-selector .dropdown-toggle:hover {
    background: white;
    border-color: #0066cc;
    color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
    transform: translateY(-1px);
}

.language-selector .dropdown-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.1);
}

.language-selector .dropdown-toggle::after {
    content: '⌄';
    font-size: 1.1rem;
    line-height: 1;
    margin-left: 0.4rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #9ca3af;
    margin-top: -2px; 
}

.language-selector .dropdown-toggle:hover::after {
    color: #0066cc;
}

.language-selector .dropdown-toggle.show::after {
    transform: rotate(180deg);
}

.language-selector .dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    background: white;
    z-index: 1000;
    display: none;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.language-selector .dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.language-selector .dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin-bottom: 2px;
}

.language-selector .dropdown-item:last-child {
    margin-bottom: 0;
}

.language-selector .dropdown-item:hover {
    background-color: #f0f7ff;
    color: #0066cc;
}

.language-selector .dropdown-item.active {
    background-color: #f0f7ff;
    color: #0066cc;
    font-weight: 600;
}

.language-selector .dropdown-item.active .badge {
    background-color: #0066cc;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.2);
}

.language-selector .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background-color: #f3f4f6;
    color: #6b7280;
    margin-left: auto;
    font-weight: 500;
    transition: all 0.2s ease;
}

.language-selector .flag-icon {
    font-size: 1.2rem;
    margin-right: 0.8rem;
    width: 24px;
    text-align: center;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.language-selector .language-name {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    text-align: left;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .language-selector {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .language-selector .dropdown-toggle {
        width: 100%;
        max-width: none;
        justify-content: space-between;
    }
    
    .language-selector .dropdown-menu {
        width: 100%;
        position: static;
        margin-top: 0.5rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

/* RTL语言支持 */
html[dir="rtl"] .language-selector {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .language-selector .dropdown-item {
    text-align: right;
    border-left: none;
    border-right: 3px solid transparent;
}

html[dir="rtl"] .language-selector .dropdown-item:hover,
html[dir="rtl"] .language-selector .dropdown-item.active {
    border-right-color: #0066cc;
    border-left-color: transparent;
}

html[dir="rtl"] .language-selector .flag-icon {
    margin-right: 0;
    margin-left: 0.75rem;
}

html[dir="rtl"] .language-selector .language-name {
    text-align: right;
}

html[dir="rtl"] .language-selector .dropdown-toggle::after {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #ff6b00;
    color: white;
}

.btn-primary:hover {
    background: #e55e00;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #0066cc;
}

.btn-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
}

.btn-link:hover {
    text-decoration: underline;
}

/* 页脚样式 */
/* 页脚样式 */
.footer {
    background: #1a2b47;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    display: block;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.wechat-qr p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.wechat-qr img {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 友情链接 */
.friendly-links {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.friendly-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #fff;
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.links-container a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
}

.links-container a:hover {
    color: white;
}

.link-separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.5rem;
}

/* 底部信息 */
.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.record-info {
    margin-top: 0.5rem;
}

.record-info a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 0.5rem;
    font-size: 0.85rem;
}

.record-info a:hover {
    color: white;
    text-decoration: underline;
}

.tech-support {
    margin-top: 0.5rem;
}

.tech-support a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
}

.tech-support a:hover {
    color: white;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .friendly-links .links-container {
        justify-content: center;
    }

    .links-container a,
    .link-separator {
        margin: 0.25rem;
    }
}