/* Tokenim钱包合作伙伴文章专用样式 */

/* 合作伙伴主视觉优化 */
.partnership-hero {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    color: white;
}

.partnership-hero .article-title {
    background: linear-gradient(135deg, white 0%, #FBBF24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.partnership-hero .article-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.partnership-hero .article-meta,
.partnership-hero .article-breadcrumb a,
.partnership-hero .article-breadcrumb span,
.partnership-hero .article-stats {
    color: rgba(255, 255, 255, 0.8);
}

.partnership-hero .article-author {
    border-color: rgba(255, 255, 255, 0.2);
}

.partnership-hero .author-name {
    color: white;
}

/* 合作徽章 */
.partnership-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-lg);
    padding: 12px 24px;
    margin-bottom: 20px;
}

.badge-icon {
    font-size: 2rem;
}

.badge-content {
    display: flex;
    flex-direction: column;
}

.badge-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #FBBF24;
}

.badge-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

/* 交易所展示区 */
.exchange-showcase {
    margin: 40px 0;
    padding: 32px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
}

.showcase-title {
    font-size: 1.5rem;
    color: white;
    text-align: center;
    margin-bottom: 32px;
    font-weight: 700;
}

.exchange-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.exchange-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.exchange-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FBBF24;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(251, 191, 36, 0.2);
}

.exchange-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    background: white;
    border-radius: var(--radius);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exchange-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.exchange-info h4 {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 8px;
}

.exchange-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.exchange-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.exchange-tags .tag {
    background: rgba(251, 191, 36, 0.2);
    color: #FBBF24;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

/* 合作伙伴封面图 */
.partnership-cover {
    border: 2px solid #FBBF24;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

.partnership-cover .cover-caption {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    color: white;
    border-top: none;
}

/* 合作伙伴统计 */
.partnership-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.partnership-stats .stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: var(--radius-lg);
}

.partnership-stats .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #FBBF24;
    line-height: 1;
    margin-bottom: 8px;
}

.partnership-stats .stat-label {
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 500;
}

/* 交易所合作伙伴详情 */
.exchange-partner {
    margin-bottom: 48px;
    padding: 32px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.exchange-partner:last-child {
    margin-bottom: 0;
}

.partner-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--gray-100);
}

.partner-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: var(--radius);
    padding: 12px;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-info h3 {
    font-size: 1.75rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.partner-tagline {
    color: var(--gray-600);
    font-size: 1rem;
    font-weight: 500;
}

.partner-content h4 {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 16px;
}

.partner-content ul {
    margin: 0 0 24px 0;
    padding-left: 20px;
}

.partner-content li {
    margin-bottom: 10px;
    color: var(--gray-800);
    line-height: 1.6;
}

.partner-content li strong {
    color: #FBBF24;
}

/* 币种网格 */
.coin-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}

.coin-item {
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

/* 特性网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.feature:hover {
    border-color: #FBBF24;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.feature-text {
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 500;
}

/* 链网格 */
.chain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.chain-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.chain-item:hover {
    border-color: #FBBF24;
    transform: translateY(-2px);
}

.chain-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.chain-item span {
    font-size: 0.75rem;
    color: var(--gray-700);
    font-weight: 600;
}

/* 用户受益展示 */
.benefit-showcase {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin: 32px 0;
}

.benefit-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.benefit-demo.reverse {
    direction: rtl;
}

.benefit-demo.reverse .demo-content {
    direction: ltr;
}

.benefit-demo img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition);
}

.benefit-demo:hover img {
    transform: scale(1.02);
}

.demo-content h4 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 16px;
}

.demo-content p {
    color: var(--gray-800);
    line-height: 1.6;
    margin-bottom: 20px;
}

.demo-content ul {
    margin: 0;
    padding-left: 20px;
}

.demo-content li {
    margin-bottom: 10px;
    color: var(--gray-700);
    line-height: 1.5;
}

/* 技术集成架构 */
.integration-architecture {
    margin: 32px 0;
}

.architecture-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 48px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(251, 191, 36, 0.1);
}

.diagram-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: white;
    border: 2px solid #FBBF24;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    min-width: 150px;
}

.node-icon {
    font-size: 2rem;
}

.node-name {
    font-weight: 600;
    color: var(--dark);
    text-align: center;
}

.diagram-connector {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.875rem;
}

.integration-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 24px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: #FBBF24;
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-card .feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.feature-card h4 {
    font-size: 1.125rem;
    color: var(--dark);
    margin-bottom: 16px;
}

.feature-card ul {
    margin: 0;
    padding-left: 16px;
}

.feature-card li {
    margin-bottom: 8px;
    color: var(--gray-700);
    font-size: 0.875rem;
}

/* API文档链接 */
.api-docs {
    margin: 32px 0;
    padding: 24px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.02) 100%);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-lg);
}

.api-docs h4 {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 12px;
}

.api-docs p {
    color: var(--gray-700);
    margin-bottom: 20px;
}

.doc-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doc-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition);
}

.doc-link:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    transform: translateX(4px);
}

.doc-link svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* 费用对比表 */
.fee-comparison {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin: 32px 0;
}

.fee-table {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-header {
    padding: 24px;
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    color: white;
    text-align: center;
}

.table-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.table-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
}

.table-content {
    padding: 0;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    border-bottom: 1px solid var(--gray-100);
}

.table-row.header {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.table-cell.highlight {
    color: #10B981;
    font-weight: 600;
}

.table-footer {
    padding: 16px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-600);
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.fee-tips {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tip-card {
    padding: 20px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.tip-card:hover {
    border-color: #FBBF24;
    box-shadow: var(--shadow);
}

.tip-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #FBBF24;
}

.tip-content h5 {
    font-size: 1.125rem;
    color: var(--dark);
    margin-bottom: 12px;
}

.tip-content ul {
    margin: 0;
    padding-left: 16px;
}

.tip-content li {
    margin-bottom: 8px;
    color: var(--gray-700);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* 安全特性 */
.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.security-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.security-card:hover {
    border-color: #FBBF24;
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.security-card .security-icon {
    font-size: 2rem;
    color: #FBBF24;
    flex-shrink: 0;
}

.security-card h4 {
    font-size: 1.125rem;
    color: var(--dark);
    margin-bottom: 12px;
}

.security-card ul {
    margin: 0;
    padding-left: 16px;
}

.security-card li {
    margin-bottom: 8px;
    color: var(--gray-700);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* 设置步骤 */
.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 32px 0;
}

.setup-steps .step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.setup-steps .step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.setup-steps .step-content {
    flex: 1;
}

.setup-steps .step-content h4 {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.setup-steps .step-content p {
    color: var(--gray-700);
    margin-bottom: 12px;
    line-height: 1.6;
}

.step-tip {
    padding: 16px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--gray-700);
}

.step-tip strong {
    color: #F59E0B;
}

/* 路线图 */
.roadmap {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 32px 0;
}

.roadmap-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.roadmap-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.roadmap-date {
    width: 100px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: white;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    flex-shrink: 0;
}

.roadmap-content {
    flex: 1;
}

.roadmap-content h5 {
    font-size: 1.125rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.roadmap-content p {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* CTA区域 */
.cta-section {
    margin: 40px 0;
    padding: 32px;
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    border-radius: var(--radius-xl);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cta-content h4 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 8px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

/* 侧边栏快速链接 */
.quick-links {
    padding: 20px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
}

.quick-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--transition);
}

.quick-link:hover {
    border-color: #FBBF24;
    color: #F59E0B;
    transform: translateX(4px);
}

.quick-link svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* 交易所微缩网格 */
.exchange-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.exchange-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.exchange-mini:hover {
    border-color: #FBBF24;
    transform: translateY(-2px);
}

.exchange-mini img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.exchange-mini span {
    font-size: 0.75rem;
    color: var(--gray-700);
    font-weight: 500;
}

/* 费率计算器 */
.calculator {
    padding: 20px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
}

.calculator-header {
    margin-bottom: 20px;
    text-align: center;
}

.calculator-header h5 {
    font-size: 1.125rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.calculator-header p {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin: 0;
}

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 500;
}

.input-group input,
.input-group select {
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--gray-800);
    transition: border-color var(--transition);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #FBBF24;
}

.calculator-result {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.result-item.total {
    border-top: 1px solid var(--gray-300);
    padding-top: 12px;
    margin-top: 12px;
    font-weight: 600;
    color: var(--dark);
}

.result-item .highlight {
    color: #10B981;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .benefit-demo {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .benefit-demo.reverse {
        direction: ltr;
    }
    
    .architecture-diagram {
        flex-direction: column;
        gap: 20px;
    }
    
    .fee-comparison {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .exchange-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .exchange-card {
        padding: 16px;
    }
    
    .exchange-partner {
        padding: 24px;
    }
    
    .partner-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .setup-steps .step {
        flex-direction: column;
        gap: 16px;
    }
    
    .roadmap-item {
        flex-direction: column;
        gap: 16px;
    }
    
    .roadmap-date {
        width: 100%;
    }
    
    .exchange-mini-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .exchange-grid {
        grid-template-columns: 1fr;
    }
    
    .partnership-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .integration-features,
    .security-features {
        grid-template-columns: 1fr;
    }
    
    .exchange-mini-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}