/* File: /assets/css/style.css (V6 - Final & Definitive Fix Version) */

:root {
    --primary-blue: #2563EB;
    --primary-blue-dark: #1D4ED8;
    --dark-charcoal: #111827;
    --medium-gray: #374151;
    --light-gray-text: #D1D5DB;
    --soft-bg: #F9FAFB;
    --white: #ffffff;
    --border-color: #E5E7EB;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    color: var(--medium-gray);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

main {
    flex-grow: 1;
}

h1, h2, h3 {
    color: var(--dark-charcoal);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.75rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 3.5rem; text-align: center; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; font-weight: 600; }

p { margin-bottom: 1.25rem; max-width: 65ch; }
a { color: var(--primary-blue); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary-blue-dark); }
ul { padding-left: 20px; }
li { margin-bottom: 0.5rem; }

/* --- Header & Navigation --- */
.header {
    background: var(--white);
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}
.header.scrolled {
    box-shadow: var(--shadow-md);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    height: 40px;
    vertical-align: middle;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    position: relative;
    font-weight: 500;
    color: var(--medium-gray);
    padding: 0.5rem 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-blue);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after {
    transform: scaleX(1);
}
.nav-links a.active {
    color: var(--dark-charcoal);
}

/* --- Buttons --- */
.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-blue), var(--primary-blue-dark));
    color: var(--white);
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-md);
    text-align: center;
    /* ====================================================== */
    /* ==== FIX 1: 强制文字不换行，防止溢出 ==== */
    white-space: nowrap;
    /* ====================================================== */
}
.cta-button:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.nav-cta {
    padding: 12px 20px;
    font-size: 0.85rem;
    min-width: 120px;
}
.nav-links a.nav-cta, .nav-links a.nav-cta:hover {
    color: var(--white);
}
.nav-links a.nav-cta::after {
    display: none;
}

/* --- Hero Section --- */
.hero {
    padding: 96px 0;
    text-align: center;
    background-color: var(--white);
}
.hero h1 {
    background: linear-gradient(45deg, var(--dark-charcoal), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.25rem;
    max-width: 750px;
    margin: 0 auto 48px auto;
    color: var(--medium-gray);
    line-height: 1.6;
}
.hero-note {
    margin-top: 80px !important;
    margin-bottom: 0 !important;
    font-weight: 500;
    color: var(--dark-charcoal);
    max-width: none !important;
}

/* --- Sections --- */
section {
    padding: 96px 0;
}
.section-bg {
    background-color: var(--soft-bg);
}

/* --- Enhanced Trust Bar / Blockchain Section --- */
.trust-bar {
    padding: 64px 0;
    background: linear-gradient(135deg, var(--soft-bg) 0%, #f8fafc 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.trust-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
}

.trust-bar .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
}

.blockchain-section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--dark-gray);
    text-align: center;
    margin: 0;
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blockchain-section-subtitle {
    font-size: 1.125rem;
    color: var(--medium-gray);
    text-align: center;
    max-width: 600px;
    line-height: 1.6;
    margin: 0;
}

.chain-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
}

.chain-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.chain-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), #06b6d4);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.chain-item:hover::before {
    transform: scaleX(1);
}

.chain-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.15);
    border-color: var(--primary-blue);
}

.chain-item img {
    height: 48px;
    width: 48px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.chain-item:hover img {
    transform: scale(1.1);
}

.chain-name {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.875rem;
    text-align: center;
    letter-spacing: 0.025em;
}

.more-chains-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #06b6d4 100%);
    border-radius: 16px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.more-chains-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.more-chains-indicator:hover::before {
    opacity: 1;
}

.more-chains-indicator:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 32px rgba(59, 130, 246, 0.3);
}

.plus-icon {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
}

.more-text {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.additional-networks {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* --- Card Grid --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}
.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.card h3 { margin-top: 0; }
.card p {
    flex-grow: 1;
}
.card a {
    margin-top: 1.5rem;
    font-weight: 600;
}
.process-card .icon {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    background-color: var(--soft-bg);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-charcoal);
    color: var(--light-gray-text);
    padding: 64px 0;
    font-size: 0.95rem;
}
.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-links a {
    margin: 0 12px;
    color: var(--light-gray-text);
}
.footer-links a:hover {
    color: var(--white);
}

/* --- Content Pages (FAQ, About, etc.) --- */
.content-page {
    max-width: 800px;
}
.content-page h1 { font-size: 3.25rem; }
.content-page h2 { font-size: 2rem; text-align: left; margin-top: 3.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }
.content-page p, .content-page ul { max-width: 100%; }
.content-page details {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: background-color 0.2s ease;
    margin-bottom: 1.25rem;
}
.content-page details:hover {
    background-color: var(--soft-bg);
}
.content-page summary {
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--dark-charcoal);
}

/* --- Floating Telegram Contact --- */
.telegram-float {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 1000;
    animation: float-pulse 3s ease-in-out infinite;
    background: transparent;
    border-radius: 50px;
}

.telegram-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #DC2626, #EF4444);
    color: white;
    padding: 14px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.telegram-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

.telegram-button svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.telegram-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.telegram-main {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.02em;
}

.telegram-sub {
    font-weight: 500;
    font-size: 11px;
    opacity: 0.9;
    margin-top: 1px;
}

@keyframes float-pulse {
    0%, 100% {
        transform: translateY(-50%) translateX(0px);
        box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
    }
    50% {
        transform: translateY(-50%) translateX(-5px);
        box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
    }
}

/* --- Scroll Animation --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Contact Form Styles --- */
.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h1 {
    margin-bottom: 1rem;
}

.contact-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-form-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--medium-gray);
    line-height: 1.4;
}

.checkbox-group {
    margin: 2rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 0;
    height: 0;
    margin: 0;
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-top: 2px;
    background: var(--white);
    display: inline-block;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* 悬停和焦点状态 */
.checkbox-label:hover .checkmark {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.checkbox-label input[type="checkbox"]:focus + .checkmark {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* 确保复选框文本对齐 */
.checkbox-label {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.form-submit {
    width: 100%;
    margin-top: 1rem;
}

/* Form Message Styles */
.form-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    border-left: 4px solid;
    animation: slideIn 0.3s ease-out;
}

.form-message.success {
    background-color: #f0f9ff;
    color: #0369a1;
    border-left-color: #22c55e;
}

.form-message.error {
    background-color: #fef2f2;
    color: #dc2626;
    border-left-color: #ef4444;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-alternative {
    background: var(--light-gray);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.contact-alternative h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark-gray);
    transition: all 0.3s ease;
}

.contact-method:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: var(--primary-blue);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.response-time {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-top: 1.5rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2rem; }
    .nav-links { display: none; }
    .footer .container { flex-direction: column; gap: 1.5rem; }

    /* Enhanced Blockchain Section Mobile */
    .trust-bar {
        padding: 48px 0;
    }

    .blockchain-section-title {
        font-size: 1.875rem;
    }

    .blockchain-section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .chain-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .chain-item {
        padding: 1rem;
        min-height: 100px;
    }

    .chain-item img {
        height: 36px;
        width: 36px;
    }

    .chain-name {
        font-size: 0.75rem;
    }

    .more-chains-indicator {
        min-height: 100px;
        padding: 1rem;
    }

    .plus-icon {
        font-size: 1.5rem;
    }

    .more-text {
        font-size: 0.75rem;
    }

    /* Mobile adjustments for Telegram float */
    .telegram-float {
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
    }

    .telegram-button {
        padding: 12px 18px;
        font-size: 13px;
        gap: 10px;
    }

    .telegram-button svg {
        width: 24px;
        height: 24px;
    }

    .telegram-main {
        font-size: 14px;
    }

    .telegram-sub {
        font-size: 10px;
    }

    /* Contact Form Mobile Styles */
    .contact-form-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-alternative {
        padding: 1.5rem;
    }

    .contact-header p {
        font-size: 1rem;
    }
}

/* ========================================
   Hyperliquid Recovery Hub Section
   ======================================== */

.section-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 0;
}

.section-highlight h2 {
    color: white;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-top: -1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.95);
}

.section-highlight .card {
    background: white;
    color: #1a202c;
}

.section-highlight .card h3 {
    color: #1a202c;
}

.section-highlight .card p {
    color: #4a5568;
}

.card-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.section-highlight .card-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-guide {
    border-left: 4px solid #10b981;
}

.card-quick {
    border-left: 4px solid #f59e0b;
}

.card-case {
    border-left: 4px solid #3b82f6;
}

.card-placeholder {
    opacity: 0.7;
    border: 2px dashed rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.coming-soon-tag {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* 4-card grid layout */
.card-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

/* Responsive adjustments for Hyperliquid Hub */
@media (max-width: 768px) {
    .section-highlight {
        padding: 3rem 0;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .card-grid-4 {
        grid-template-columns: 1fr;
    }
}