* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ffd700;
    --secondary-color: #333;
    --background-color: #0a0a0a;
    --text-color: #fff;
    --card-background: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --hover-color: rgba(255, 215, 0, 0.2);
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo图片样式 */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    display: inline-block;
    vertical-align: middle;
}

.logo p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

.nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav ul li {
    margin-left: 20px;
}

.nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 200px 0 150px;
    background-color: #0a0a0a;
    position: relative;
    overflow: hidden;
}

/* K线背景 canvas */
.hero-kline-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 100%;
    z-index: 0;
    opacity: 0.35;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
}

.hero-content {
    text-align: center;
    max-width: 600px;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn.primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.btn.secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--background-color);
}

.features h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
}

.features-desc {
    text-align: center;
    margin-bottom: 60px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 215, 0, 0.06) 50%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-card:hover::before {
    transform: translateX(30%);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.15), 0 0 20px rgba(255, 215, 0, 0.08);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-color: rgba(255, 215, 0, 0.4);
}

.feature-card:hover h3 {
    color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--hover-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 24px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.feature-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Performance Section */
.performance {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(20, 20, 20, 0.9) 100%);
}

.performance h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
}

.performance-desc {
    text-align: center;
    margin-bottom: 60px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 1.6;
}

.performance-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.performance-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.metric-card {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 215, 0, 0.06) 50%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.metric-card:hover::before {
    transform: translateX(30%);
}

.metric-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.15), 0 0 20px rgba(255, 215, 0, 0.08);
}



.metric-card h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.metric-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.metric-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.performance-chart {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    height: 400px;
}

.performance-chart h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.trade-history {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.trade-history h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.trade-table {
    overflow-x: auto;
}

.trade-table-container {
    height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-top: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.05);
}

.trade-table-container::-webkit-scrollbar {
    width: 8px;
}

.trade-table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.trade-table-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.trade-table-container::-webkit-scrollbar-thumb:hover {
    background: #ffc107;
}

.trade-table table {
    width: 100%;
    border-collapse: collapse;
}

.trade-table th,
.trade-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.trade-table th {
    font-weight: 600;
    color: var(--primary-color);
}

.trade-table td {
    color: rgba(255, 255, 255, 0.8);
}

.trade-table th:nth-child(4),
.trade-table td:nth-child(4),
.trade-table th:nth-child(5),
.trade-table td:nth-child(5) {
    min-width: 100px;
    max-width: 120px;
}

/* 数量列（第6列） */
.trade-table th:nth-child(6),
.trade-table td:nth-child(6) {
    min-width: 80px;
    max-width: 100px;
}

/* 收益列（第7列） */
.trade-table th:nth-child(7),
.trade-table td:nth-child(7) {
    min-width: 110px;
    max-width: 130px;
}

.trade-table tr:hover {
    background-color: var(--hover-color);
}

/* Login Section */
.login {
    padding: 100px 0;
    background-color: var(--background-color);
}

.login h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-color);
}

.demo-account {

    margin: 0 auto;
}

.account-info-card {
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.account-info-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.account-details {
    margin-bottom: 30px;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item .label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.detail-item .value {
    font-weight: 600;
    color: var(--primary-color);
}

.account-note {
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(20, 20, 20, 0.9) 100%);
}

.contact h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
}

.contact-desc {
    text-align: center;
    margin-bottom: 60px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 1.6;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    background-color: var(--card-background);
    padding: 50px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.contact-info:hover {
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.1);
}

.contact-info p {
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item svg {
    color: var(--primary-color);
}

.contact-form {
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.contact-form:hover {
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.1);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-color);
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    margin-top: 10px;
}

.contact-note {
    text-align: center;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-style: italic;
    line-height: 1.6;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background-color: var(--background-color);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 10px;
}

.footer-logo h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: inline-block;
    vertical-align: middle;
}

.footer-logo p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

.footer-links h3,
.footer-social h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--card-background);
    border-radius: 50%;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Partners Section */
.partners {
    padding: 100px 0;
    background-color: var(--background-color);
}

.partners h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
}

.partners-content {
    max-width: 1400px;
    margin: 0 auto;
}

.partners-content > p {
    text-align: center;
    margin-bottom: 50px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 1.6;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.partner-item {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.partner-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 215, 0, 0.06) 50%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.partner-item:hover::before {
    transform: translateX(30%);
}

.partner-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.1);
}

.partner-item:hover .partner-icon {
    transform: scale(1.15);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.partner-item:hover h3 {
    color: var(--primary-color);
}

.partner-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.partner-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.3;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.partner-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Risk Modal */
.risk-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.risk-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.risk-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
}

.risk-modal-content {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a 0%, #111 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    max-width: 560px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.1), 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: riskModalIn 0.4s ease;
}

@keyframes riskModalIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.risk-modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 32px 0;
}

.risk-modal-header svg {
    flex-shrink: 0;
}

.risk-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.risk-modal-body {
    padding: 20px 32px;
}

.risk-modal-body p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 14px;
}

.risk-modal-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.risk-modal-body ul li {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    padding-left: 22px;
    position: relative;
    margin-bottom: 12px;
    font-size: 14px;
}

.risk-modal-body ul li::before {
    content: "•";
    color: #ffd700;
    font-size: 16px;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.risk-modal-footer {
    padding: 16px 32px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.risk-checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.risk-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    margin-top: 1px;
    transition: all 0.2s ease;
}

.risk-checkbox input[type="checkbox"]:checked {
    background: #ffd700;
    border-color: #ffd700;
}

.risk-checkbox input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0a0a0a;
    font-size: 14px;
    font-weight: bold;
}

.risk-checkbox span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.2s;
}

.risk-checkbox:hover span {
    color: rgba(255, 255, 255, 0.9);
}

.risk-checkbox input[type="checkbox"]:checked + span {
    color: #ffd700;
}

/* 移动端弹窗适配 */
@media (max-width: 768px) {
    .risk-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    .risk-modal-header {
        padding: 20px 20px 0;
    }
    .risk-modal-body {
        padding: 16px 20px;
    }
    .risk-modal-footer {
        padding: 12px 20px 20px;
    }
    .risk-modal-header h2 {
        font-size: 20px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h2 {
        font-size: 36px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .hero .container {
        min-height: 280px;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .contact-info {
        padding: 30px;
        max-width: 100%;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .logo img {
        height: 30px;
        max-width: 150px;
    }
    
    .footer-logo img {
        height: 30px;
        max-width: 150px;
    }

    .footer-logo p {
        font-size: 12px;
    }

    .partners-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .partner-item {
        padding: 25px;
    }
    
    .partner-item h3 {
        white-space: normal;
    }

    .partners h2 {
        font-size: 28px;
    }

    .partners-content > p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .contact-note {
        font-size: 12px;
        padding: 12px;
        margin-top: 20px;
    }

    .nav ul {
        display: none;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.metric-card,
.hero-content {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.8);
}

/* ===================== 语言切换按钮 ===================== */
.nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switcher {
    margin-left: 16px;
    display: flex;
    align-items: center;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    width: 80px;
    min-width: 80px;
    height: 32px;
    min-height: 32px;
    background: transparent;
    border: 1.5px solid var(--primary-color);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    letter-spacing: 0.5px;
    line-height: 1;
}

.lang-btn:hover {
    background: var(--primary-color);
    color: #111;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}


/* 切换动画 */
[data-i18n], [data-i18n-placeholder] {
    transition: opacity 0.2s ease;
}

.lang-switching [data-i18n],
.lang-switching [data-i18n-placeholder] {
    opacity: 0;
}

@media (max-width: 768px) {
    .lang-switcher {
        margin-left: 0;
    }
    .lang-btn {
        padding: 0;
        width: 70px;
        min-width: 70px;
        height: 28px;
        min-height: 28px;
        font-size: 12px;
    }
}