:root {
    --container: 1180px;
    --color-dark-blue: #1e3a8a;
    --color-blue: #2563eb;
    --color-light-blue: #dbeafe;
    --color-white: #ffffff;
    --color-gray: #6b7280;
    --color-light-gray: #f3f4f6;
    --color-border: #e5e7eb;
    --color-success: #10b981;
    --color-warning: #f59e0b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1f2937;
    background: #ffffff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    gap: 40px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.navbar-logo {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.navbar-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark-blue);
    letter-spacing: 0.5px;
}

.navbar-menu {
    display: flex;
    gap: 30px;
    flex: 1;
}

.nav-menu-item {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}

.nav-menu-item:hover,
.nav-menu-item.active {
    color: var(--color-blue);
    border-color: var(--color-blue);
}

.nav-action-btn {
    background: var(--color-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-action-btn:hover {
    background: var(--color-dark-blue);
}

.navbar-underline {
    display: none;
}

/* Hero */
.hero {
    padding-top: 80px;
    padding-bottom: 40px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 38px;
    font-weight: 700;
    color: var(--color-dark-blue);
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-text {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 24px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

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

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

.btn-secondary:hover {
    background: var(--color-light-blue);
}

.hero-warning {
    background: #fef3c7;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.6;
}

.hero-image {
    border-radius: 12px;
    overflow: hidden;
    background: white;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.15);
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* 模块通用 */
.module {
    padding: 50px 0;
    border-bottom: 1px solid var(--color-border);
}

.module h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-dark-blue);
    margin-bottom: 30px;
    text-align: center;
}

/* 资产模块 */
.assets-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.assets-image {
    border-radius: 10px;
    overflow: hidden;
    background: var(--color-light-gray);
    padding: 10px;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.assets-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

.tab-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px;
    border: 2px solid var(--color-border);
    background: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    border-color: var(--color-blue);
    background: var(--color-light-blue);
    color: var(--color-blue);
}

.tab-content {
    position: relative;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-panel h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark-blue);
    margin-bottom: 12px;
}

.tab-panel p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.8;
}

/* 功能模块 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--color-blue);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.feature-image {
    width: 100%;
    height: 120px;
    background: var(--color-light-gray);
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-dark-blue);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
}

/* 安全检查模块 */
.security-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-gray);
    transition: all 0.3s ease;
}

.check-item:hover,
.check-item.active {
    border-color: var(--color-blue);
    background: var(--color-light-blue);
    color: var(--color-blue);
}

.check-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--color-light-blue);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.check-item.active .check-num {
    background: var(--color-blue);
    color: white;
}

.check-details {
    position: relative;
}

.detail-panel {
    display: none;
}

.detail-panel.active {
    display: block;
}

.detail-panel h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark-blue);
    margin-bottom: 12px;
}

.detail-panel p {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 16px;
    line-height: 1.8;
}

.detail-image {
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-light-gray);
    padding: 10px;
    max-height: 250px;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

/* 界面模块 */
.interface-viewer {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
}

.viewer-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.viewer-btn {
    padding: 10px;
    border: 2px solid var(--color-border);
    background: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.viewer-btn:hover,
.viewer-btn.active {
    border-color: var(--color-blue);
    background: var(--color-light-blue);
    color: var(--color-blue);
}

.viewer-display {
    position: relative;
}

.view-item {
    display: none;
}

.view-item.active {
    display: block;
}

.view-item img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--color-light-gray);
    padding: 10px;
}

.view-item p {
    font-size: 13px;
    color: #4b5563;
    margin-top: 12px;
    text-align: center;
}

/* 转账模块 */
.transfer-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.step {
    background: white;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-light-blue);
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: 12px;
}

.step h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-dark-blue);
    margin-bottom: 8px;
}

.step p {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
}

.transfer-image {
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-light-gray);
    padding: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.transfer-image img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    border-radius: 6px;
}

/* FAQ 模块 */
.faq-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.faq-item {
    padding: 12px;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-gray);
    text-align: left;
    transition: all 0.3s ease;
}

.faq-item:hover,
.faq-item.active {
    border-color: var(--color-blue);
    background: var(--color-light-blue);
    color: var(--color-blue);
}

.faq-answers {
    position: relative;
}

.faq-answer {
    display: none;
}

.faq-answer.active {
    display: block;
}

.faq-answer h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark-blue);
    margin-bottom: 12px;
}

.faq-answer p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--color-dark-blue);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.footer-brand p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-links h4,
.footer-notice h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-notice p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

/* 返回顶部 */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--color-blue);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    display: none;
    z-index: 900;
    transition: all 0.3s ease;
}

.scroll-to-top:hover {
    background: var(--color-dark-blue);
    transform: translateY(-2px);
}

.scroll-to-top.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .navbar-menu {
        gap: 20px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .assets-layout {
        grid-template-columns: 1fr;
    }

    .assets-image {
        position: static;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .security-layout {
        grid-template-columns: 1fr;
    }

    .check-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .interface-viewer {
        grid-template-columns: 1fr;
    }

    .viewer-buttons {
        grid-template-columns: repeat(5, 1fr);
        position: static;
    }

    .transfer-steps {
        grid-template-columns: 1fr;
    }

    .faq-layout {
        grid-template-columns: 1fr;
    }

    .faq-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        position: static;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar-container {
        gap: 20px;
        padding: 8px 0;
    }

    .navbar-menu {
        display: none;
    }

    .navbar-logo {
        width: 28px;
        height: 28px;
    }

    .navbar-text {
        font-size: 16px;
    }

    .nav-action-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .hero {
        padding-top: 60px;
        padding-bottom: 30px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .module h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .assets-layout {
        gap: 20px;
    }

    .tab-buttons {
        gap: 8px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-image {
        height: 100px;
    }

    .feature-card h3 {
        font-size: 14px;
    }

    .feature-card p {
        font-size: 12px;
    }

    .security-layout {
        gap: 20px;
    }

    .check-list {
        grid-template-columns: 1fr;
    }

    .interface-viewer {
        gap: 16px;
    }

    .viewer-buttons {
        gap: 6px;
    }

    .viewer-btn {
        font-size: 11px;
        padding: 8px;
    }

    .view-item img {
        max-height: 400px;
    }

    .transfer-steps {
        gap: 12px;
    }

    .step {
        padding: 14px;
    }

    .faq-list {
        grid-template-columns: 1fr;
        gap: 6px;
    }

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

@media (max-width: 480px) {
    body {
        padding-bottom: 0;
    }

    .navbar-container {
        gap: 12px;
    }

    .navbar-brand {
        gap: 8px;
    }

    .navbar-logo {
        width: 26px;
        height: 26px;
    }

    .navbar-text {
        font-size: 14px;
    }

    .nav-action-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .hero {
        padding-top: 50px;
        padding-bottom: 20px;
    }

    .hero-content h1 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .hero-text {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .hero-buttons {
        gap: 8px;
    }

    .btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .hero-warning {
        font-size: 12px;
        padding: 10px 12px;
    }

    .module {
        padding: 30px 0;
    }

    .module h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .assets-layout {
        gap: 16px;
    }

    .assets-image {
        padding: 8px;
    }

    .tab-buttons {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-bottom: 16px;
    }

    .tab-btn {
        padding: 10px;
        font-size: 12px;
    }

    .tab-panel h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .tab-panel p {
        font-size: 13px;
    }

    .features-grid {
        gap: 10px;
    }

    .feature-card {
        padding: 12px;
    }

    .feature-image {
        height: 80px;
        margin-bottom: 8px;
    }

    .check-list {
        gap: 6px;
    }

    .check-item {
        padding: 10px;
        font-size: 12px;
        gap: 8px;
    }

    .check-num {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .detail-panel h3 {
        font-size: 16px;
    }

    .detail-panel p {
        font-size: 13px;
    }

    .interface-viewer {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .viewer-buttons {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .viewer-btn {
        padding: 8px 4px;
        font-size: 10px;
    }

    .view-item img {
        max-height: 300px;
        padding: 8px;
    }

    .view-item p {
        font-size: 12px;
        margin-top: 8px;
    }

    .transfer-steps {
        gap: 10px;
        margin-bottom: 20px;
    }

    .step {
        padding: 12px;
    }

    .step h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .step p {
        font-size: 12px;
    }

    .transfer-image {
        padding: 8px;
        max-width: 100%;
    }

    .transfer-image img {
        max-height: 200px;
    }

    .faq-list {
        gap: 6px;
    }

    .faq-item {
        padding: 10px;
        font-size: 12px;
    }

    .faq-answer h3 {
        font-size: 16px;
    }

    .faq-answer p {
        font-size: 13px;
    }

    .footer-content {
        gap: 16px;
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .footer-brand img {
        width: 30px;
        height: 30px;
    }

    .footer-links h4,
    .footer-notice h4 {
        font-size: 12px;
    }

    .footer-links a {
        font-size: 12px;
    }

    .footer-notice p {
        font-size: 11px;
    }

    .footer-bottom p {
        font-size: 11px;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}
