:root {
    /* 主色调 - 深蓝色系 */
    --primary-color: #2563eb;
    --primary-color-dark: #1d4ed8;
    --primary-color-light: #3b82f6;
    
    /* 辅助色 - 渐变用 */
    --secondary-color: #4f46e5;
    --accent-color: #6366f1;
    
    /* 背景色 */
    --background-primary: #ffffff;
    --background-secondary: #f8fafc;
    --card-background: #ffffff;
    
    /* 文字颜色 */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    
    /* 边框和阴影 */
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
    :root {
        --background-primary: #0f172a;
        --background-secondary: #1e293b;
        --card-background: #1e293b;
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-light: #94a3b8;
        --border-color: rgba(255, 255, 255, 0.1);
    }
}

body {
    background: var(--background-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.download-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.download-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.region-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

.download-card h3 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.download-card p {
    margin: 0 0 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.download-button:hover {
    background: linear-gradient(135deg, var(--primary-color-dark), var(--secondary-color));
    transform: translateY(-2px);
}

.download-button i {
    font-size: 1.1rem;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .download-card {
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .download-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }
}

/* 平板适配 */
@media (max-width: 1024px) {
    .download-grid {
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .download-card {
        padding: 1.5rem;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .download-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
        margin: 1.5rem auto;
    }
    
    .download-card {
        padding: 1.5rem;
    }
    
    .region-tag {
        top: 1rem;
        right: 1rem;
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .download-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .download-card p {
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }
    
    .download-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }
}

.contact-section {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    background: var(--background-secondary);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.contact-section h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 2rem;
    transition: all 0.2s ease;
}

.contact-item:hover {
    background: rgba(37, 99, 235, 0.15);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* 联系按钮样式 */
.contact-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* 导航栏样式 */
.top-nav {
    background: var(--background-secondary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.8rem 0;
    transition: transform 0.3s ease;
}

.top-nav.hidden {
    transform: translateY(-100%);
}

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

.nav-left, .nav-right {
    flex: 1;
}

.nav-center {
    flex: 2;
    display: flex;
    justify-content: center;
}

.ip-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 0.5rem;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.ip-display:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.ip-display i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.ip-display span {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: monospace;
    letter-spacing: 0.5px;
}

.ip-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--card-background);
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.ip-display:hover .ip-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.tooltip-divider {
    color: var(--text-secondary);
    font-weight: 300;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .ip-display {
        background: rgba(37, 99, 235, 0.1);
        border-color: rgba(37, 99, 235, 0.2);
    }
    
    .ip-display:hover {
        background: rgba(37, 99, 235, 0.15);
        border-color: rgba(37, 99, 235, 0.3);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .ip-display {
        padding: 0.3rem 0.6rem;
    }
    
    .ip-display span, .ip-display i {
        font-size: 0.85rem;
    }
    
    .ip-tooltip {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }
}

/* 小屏幕适配 */
@media (max-width: 480px) {
    .ip-display {
        padding: 0.25rem 0.5rem;
    }
    
    .ip-tooltip {
        padding: 0.4rem 0.6rem;
    }
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-divider {
    width: 2px;
    height: 24px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 0.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.nav-link.primary {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.nav-link.primary:hover {
    background: rgba(37, 99, 235, 0.2);
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.dropdown-toggle:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-background);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 1.25rem;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0.25rem 0;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .nav-logo {
        border-right-color: rgba(255, 255, 255, 0.1);
    }
    
    .nav-divider {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav-content {
        padding: 0 1rem;
    }
    
    .nav-logo span {
        display: none;
    }
    
    .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .nav-left {
        gap: 1rem;
    }
    
    .nav-logo {
        padding-right: 1rem;
    }
    
    .nav-right {
        gap: 0.5rem;
    }
    
    .nav-divider {
        margin: 0 0.25rem;
    }
}

/* 小屏幕适配 */
@media (max-width: 480px) {
    .nav-link span {
        display: none;
    }
    
    .nav-link {
        padding: 0.5rem;
    }
    
    .nav-link i {
        font-size: 1.2rem;
    }
    
    .nav-divider {
        margin: 0 0.2rem;
    }
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--card-background);
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    margin: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.close-button:hover {
    background: rgba(0, 0, 0, 0.1);
}

.modal-body {
    padding: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-method:last-child {
    border-bottom: none;
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 2rem;
    text-align: center;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.contact-info p {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
}

.copy-button {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.copy-button:hover {
    background: rgba(37, 99, 235, 0.2);
}

.copy-button.copied {
    background: #10B981;
    color: white;
}

/* 页脚样式 */
.footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header {
        padding: 1rem 0;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .download-card {
        padding: 1.25rem;
    }
    
    .download-card h3 {
        font-size: 1.2rem;
    }
    
    .download-card p {
        font-size: 0.9rem;
    }
    
    .download-button {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
    
    .contact-section {
        margin-top: 2rem;
        padding: 1.5rem 1rem;
    }
    
    .contact-section h2 {
        font-size: 1.5rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-item {
        width: 100%;
        justify-content: center;
    }
    
    .nav-content {
        padding: 0 1rem;
    }
    
    .nav-logo span {
        display: none;
    }
    
    .footer-content {
        padding: 0 1rem;
    }
    
    .footer-links {
        gap: 1rem;
    }
}

/* 平板设备优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 1.5rem;
    }
    
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
}

/* 横屏手机优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header {
        margin-bottom: 2rem;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1a1a;
        --card-background: #2d2d2d;
        --text-primary: #ffffff;
        --text-secondary: #a0a0a0;
    }
    
    .download-card {
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .region-tag {
        background: rgba(37, 99, 235, 0.2);
    }
    
    .contact-item {
        background: rgba(37, 99, 235, 0.2);
    }
    
    .download-button {
        opacity: 0.9;
    }
    
    .download-button:hover {
        opacity: 1;
    }
    
    .footer {
        border-top-color: rgba(255, 255, 255, 0.1);
    }
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
    .modal-header {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .contact-method {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .close-button:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .contact-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.dropdown-toggle:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-background);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 1.25rem;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0.25rem 0;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .dropdown-menu {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    }
    
    .dropdown-divider {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .dropdown-toggle span {
        display: none;
    }
    
    .dropdown-toggle {
        padding: 0.5rem;
    }
    
    .dropdown-toggle i {
        font-size: 1.2rem;
    }
}

/* IP信息组件样式 */
.ip-info {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 900;
}

.ip-widget {
    background: var(--card-background);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.ip-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.ip-widget i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.ip-details {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: var(--card-background);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.ip-widget:hover .ip-details {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item .label {
    color: var(--text-secondary);
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .ip-widget {
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .ip-details {
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .ip-info {
        bottom: 10px;
        right: 10px;
    }
    
    .ip-widget {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .ip-details {
        min-width: 180px;
        padding: 0.75rem;
    }
}

/* 导航栏样式 */
@media (max-width: 768px) {
    .nav-content {
        padding: 0 1rem;
    }
    
    .nav-center {
        flex: 1;
    }
    
    .ip-display {
        padding: 0.4rem 0.8rem;
    }
    
    .ip-display span {
        font-size: 0.8rem;
    }
    
    .ip-tooltip {
        min-width: 180px;
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* 小屏幕适配 */
@media (max-width: 480px) {
    .ip-display i {
        display: none;
    }
    
    .ip-display {
        padding: 0.3rem 0.6rem;
    }
}
