/* 奥伦贵金属 - 公共样式 */
:root {
    --primary-blue: #0052CC;
    --secondary-blue: #1E88E5;
    --dark-blue: #003D99;
    --light-blue: #E3F2FD;
    --text-dark: #1A1A1A;
    --text-gray: #666666;
    --border-color: #E0E0E0;
    --success-green: #28A745;
    --danger-red: #DC3545;
    --warning-orange: #FFA726;
    --bg-light: #F5F7FA;
}

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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}

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

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

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

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

.logo img {
    height: 40px;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
}

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

/* 语言选择器 */
.lang-selector {
    position: relative;
    margin-left: 15px;
}

.lang-selector select {
    padding: 8px 30px 8px 12px;
    border: 2px solid var(--primary-blue);
    border-radius: 5px;
    background-color: white;
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="12" height="8" viewBox="0 0 12 8" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="%230052CC" stroke-width="2" fill="none" stroke-linecap="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.lang-selector select:hover {
    background-color: var(--light-blue);
    border-color: var(--dark-blue);
}

.lang-selector select:focus {
    outline: none;
    border-color: var(--dark-blue);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

.btn {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: white;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 移动端抽屉菜单 */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 200px;
    max-width: 70%;
    height: 100%;
    background: linear-gradient(180deg, #1a2332 0%, #0f1621 100%);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.mobile-menu-drawer.active {
    right: 0;
}

/* 抽屉菜单头部 */
.mobile-menu-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 15px 20px;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 60px;
}

.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg) scale(1.1);
}

.mobile-menu-close:active {
    transform: rotate(90deg) scale(0.95);
    background-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu-close::before,
.mobile-menu-close::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
}

.mobile-menu-close::before {
    transform: rotate(45deg);
}

.mobile-menu-close::after {
    transform: rotate(-45deg);
}

.mobile-menu-drawer .nav-menu {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style: none;
    background: transparent;
    flex: 1;
}

.mobile-menu-drawer .nav-menu li {
    position: relative;
}

.mobile-menu-drawer .nav-menu a {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-drawer .nav-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, var(--primary-blue) 0%, #4a9eff 100%);
    transition: width 0.3s ease;
}

.mobile-menu-drawer .nav-menu a::after {
    content: '›';
    position: absolute;
    right: 25px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.mobile-menu-drawer .nav-menu a:hover,
.mobile-menu-drawer .nav-menu a.active {
    background: linear-gradient(90deg, rgba(0, 82, 204, 0.2) 0%, rgba(0, 82, 204, 0.1) 100%);
    color: #ffffff;
    padding-left: 35px;
    font-weight: 600;
}

.mobile-menu-drawer .nav-menu a.active::before {
    width: 5px;
}

.mobile-menu-drawer .nav-menu a:hover::after,
.mobile-menu-drawer .nav-menu a.active::after {
    color: var(--primary-blue);
    transform: translateX(5px);
}

.mobile-menu-drawer .nav-buttons {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-drawer .nav-buttons .btn {
    width: 100%;
    text-align: center;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.mobile-menu-drawer .nav-buttons .btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.mobile-menu-drawer .nav-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.mobile-menu-drawer .nav-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 82, 204, 0.4);
}

.mobile-menu-drawer .nav-buttons .btn-primary:hover {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    box-shadow: 0 6px 20px rgba(0, 82, 204, 0.5);
    transform: translateY(-2px);
}

.mobile-menu-drawer .lang-selector {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
}

.mobile-menu-drawer .lang-selector select {
    width: 100%;
    padding: 14px 15px;
    font-size: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="12" height="8" viewBox="0 0 12 8" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="%23ffffff" stroke-width="2" fill="none" stroke-linecap="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 35px;
}

.mobile-menu-drawer .lang-selector select:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.mobile-menu-drawer .lang-selector select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.2);
}

/* 页脚 */
.footer {
    background-color: var(--dark-blue);
    color: white;
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

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

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.qr-code {
    width: 150px;
    height: 150px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.qr-code img {
    width: 130px;
    height: 130px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.risk-warning {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.8;
}

/* 响应式设计 - 移动端 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .main-nav {
        position: relative;
        flex-wrap: nowrap;
    }

    .logo {
        flex: 1;
        min-width: 0;
    }

    .logo img {
        height: 35px;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 3;
        margin-left: 15px;
        flex-shrink: 0;
    }

    .nav-menu {
        display: none;
    }

    .nav-buttons {
        display: none;
    }
    
    .lang-selector {
        display: none;
    }

    /* 页脚移动端优化 - 简化版 */
    .footer {
        padding: 30px 0 20px;
        margin-top: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* 移动端隐藏二维码部分 - 通过JavaScript动态处理 */
    .footer-section.mobile-hide {
        display: none !important;
    }

    .footer-section {
        text-align: center;
        padding: 0 15px;
    }

    .footer-section h3 {
        font-size: 17px;
        margin-bottom: 18px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .footer-section ul {
        padding: 0;
        margin: 0;
    }

    .footer-section ul li {
        margin-bottom: 10px;
    }

    .footer-section ul li a {
        font-size: 14px;
        padding: 8px 12px;
        display: inline-block;
        border-radius: 6px;
        transition: all 0.3s;
    }

    .footer-section ul li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .footer-section p {
        font-size: 13px;
        line-height: 1.8;
        margin-bottom: 12px;
    }

    .footer-section p strong {
        display: block;
        margin-bottom: 5px;
        font-size: 14px;
    }

    .risk-warning {
        padding: 18px 15px;
        font-size: 11px;
        line-height: 1.8;
        margin-bottom: 20px;
        border-radius: 8px;
        background-color: rgba(255, 255, 255, 0.05);
    }

    .footer-bottom {
        padding-top: 20px;
        font-size: 11px;
        line-height: 1.8;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .footer-bottom p {
        margin-bottom: 6px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* 移动端通用优化 */
    .section-title h2 {
        font-size: 26px;
    }

    .section-title p {
        font-size: 14px;
    }

    .card {
        padding: 25px 20px;
    }

    /* 移动端导航栏优化 */
    .main-header {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .main-nav {
        padding: 12px 0;
    }
}

/* 通用卡片样式 */
.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* 标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-gray);
    font-size: 16px;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 82, 204, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-blue);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 涨跌颜色 */
.price-up {
    color: var(--success-green);
}

.price-down {
    color: var(--danger-red);
}

