/* ========================================
   币安担保 - BiAnDanBao.com
   1:1 精确复刻样式表
   ======================================== */

/* CSS Variables */
:root {
    --primary-gold: #F0B90B;
    --primary-gold-dark: #D4A009;
    --primary-gold-light: #F8D56B;
    --bg-dark: #0B0E11;
    --bg-card: #1E2329;
    --bg-hover: #2B3139;
    --text-primary: #FFFFFF;
    --text-secondary: #848E9C;
    --text-muted: #5E6673;
    --border-color: #2B3139;
    --color-red: #E02D2D;
    --color-gray: #6B7280;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ========================================
   Modal
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 14, 17, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h2 {
    font-size: 18px;
    color: var(--primary-gold);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: 60vh;
}

.modal-intro {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.modal-section {
    margin-bottom: 20px;
}

.modal-section h3 {
    font-size: 15px;
    margin-bottom: 10px;
}

.modal-section p,
.modal-section li {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.8;
}

.modal-section ul {
    list-style: none;
    padding-left: 16px;
}

.modal-section li {
    position: relative;
    padding-left: 12px;
}

.modal-section li::before {
    content: '•';
    color: var(--primary-gold);
    position: absolute;
    left: 0;
}

.text-danger {
    color: #F6465D;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}

.btn-agree {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark));
    color: var(--bg-dark);
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ========================================
   Header
   ======================================== */
.header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 26px;
}

.logo-badge.small {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.logo-image {
    background: #fff;
    border: 1px solid #e5e7eb;
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-inner {
    text-align: center;
    color: #1a1a1a;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.1;
}

.logo-domain {
    font-size: 11px;
    color: var(--text-secondary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-gold-dark);
    background: #fef3c7;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: #fff;
    padding: 0;
    overflow: hidden;
}

.hero-container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero-banner-wrap {
    width: 100%;
    margin: 0;
    line-height: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #fff;
}

.hero-banner {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-bg,
.stars,
.gradient-overlay,
.hero-content,
.hero-shield,
.shield-3d,
.shield-base,
.shield-platform,
.platform-top,
.platform-front,
.decor-block,
.decor-sphere,
.hero-text,
.hero-title,
.title-line,
.hero-subtitle {
    display: none !important;
}

.shield-platform {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 60px;
}

.platform-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 8px;
    transform: perspective(100px) rotateX(30deg);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.platform-front {
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 25px;
    background: linear-gradient(to bottom, #1d4ed8, #1e40af);
    border-radius: 0 0 4px 4px;
}

.decor-block {
    position: absolute;
    background: linear-gradient(135deg, var(--primary-gold-light), var(--primary-gold));
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(240, 185, 11, 0.3);
}

.block-1 {
    width: 40px;
    height: 40px;
    top: 60px;
    left: 30px;
    transform: rotate(-15deg);
}

.block-2 {
    width: 30px;
    height: 30px;
    top: 100px;
    right: 40px;
    transform: rotate(20deg);
}

.block-3 {
    width: 25px;
    height: 25px;
    bottom: 100px;
    left: 50px;
    transform: rotate(-10deg);
}

.block-4 {
    width: 35px;
    height: 35px;
    bottom: 80px;
    right: 30px;
    transform: rotate(15deg);
}

.decor-sphere {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #60a5fa, #3b82f6);
    border-radius: 50%;
    top: 40px;
    right: 80px;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
}

.hero-text {
    flex: 1;
    text-align: right;
}

.hero-title {
    margin-bottom: 20px;
}

/* legacy hero text styles retained but disabled by hidden hero-text */
.title-line {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-gold);
    text-shadow: 0 2px 20px rgba(240, 185, 11, 0.3);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ========================================
   Announcement Bar
   ======================================== */
.announcement-bar {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.announcement-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.announcement-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    background: #f3f4f6;
    padding: 10px 16px;
    border-radius: 8px;
}

.announcement-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
}

.speaker-icon {
    width: 18px;
    height: 18px;
    color: var(--primary-gold);
}

.announcement-scroll {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.scroll-content {
    display: flex;
    gap: 40px;
    animation: scroll 20s linear infinite;
}

.scroll-item {
    color: var(--text-secondary);
    font-size: 13px;
    white-space: nowrap;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 8px;
}

.search-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    margin-left: 12px;
}

.search-input {
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
    width: 180px;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.btn-search {
    padding: 8px 20px;
    background: var(--primary-gold);
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-search:hover {
    background: var(--primary-gold-dark);
}

/* ========================================
   Groups Section
   ======================================== */
.groups-section {
    background: #f9fafb;
    padding: 40px 0 60px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    width: 36px;
    height: 36px;
}

.section-icon svg {
    width: 100%;
    height: 100%;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.usdd-tag {
    padding: 4px 10px;
    background: #dbeafe;
    color: #2563eb;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
}

.more-link {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.more-link:hover {
    color: var(--primary-gold-dark);
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.group-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s;
}

.group-card:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.1);
}

.card-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.badge {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.badge-supply {
    background: var(--color-red);
    color: #fff;
}

.badge-demand {
    background: var(--color-gray);
    color: #fff;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.card-info {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.card-info p {
    margin-bottom: 4px;
}

.card-info strong {
    color: #4b5563;
}

.group-link {
    color: #2563eb;
    word-break: break-all;
    font-size: 11px;
}

.group-link:hover {
    text-decoration: underline;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

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

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

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
}

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

.footer-contact p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .groups-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .announcement-bar .container {
        flex-direction: column;
        gap: 16px;
    }
    
    .announcement-wrapper {
        width: 100%;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-input {
        flex: 1;
        width: auto;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .title-line {
        font-size: 28px;
    }
    
    .groups-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .groups-grid {
        grid-template-columns: 1fr;
    }
}
