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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    font-size: 23px;
    line-height: 1.8;
}

html {
    font-size: 25px;
}

.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    color: #1e88e5;
}

.logo img {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    border-radius: 4px;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-item {
    margin-right: 24px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-item:hover,
.nav-item.active {
    color: #1e88e5;
}

.login-btn {
    background-color: #1e88e5;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #1976d2;
}

.container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

.sidebar {
    width: 220px;
    flex-shrink: 0;
    margin-right: 24px;
}

.sidebar h3 {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    margin-bottom: 12px;
    padding-left: 12px;
}

.sidebar-menu {
    list-style: none;
    background-color: #f8f8f8;
    padding: 8px 0;
}

.sidebar-menu li {
    border-bottom: none;
}

.menu-group {
    margin-bottom: 8px;
}

.group-title {
    display: block;
    padding: 12px 16px 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-top: 1px solid #e0e0e0;
    margin-top: 8px;
}

.menu-group:first-child .group-title {
    border-top: none;
    margin-top: 0;
}

.group-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.group-items li {
    margin: 0;
}

.group-items a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: color 0.2s ease;
}

.group-items a:hover {
    color: #1e88e5;
}

.group-items a.active {
    color: #1e88e5;
    font-weight: 500;
}

.main-content {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 32px;
}

.content-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8e8e8;
}

.content-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.content-header p {
    color: #666;
    font-size: 14px;
}

.section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.icon-box.purple {
    background: linear-gradient(135deg, #7e57c2, #5e35b1);
}

.icon-box.blue {
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
}

.icon-box.green {
    background: linear-gradient(135deg, #66bb6a, #43a047);
}

.icon-box.orange {
    background: linear-gradient(135deg, #ffa726, #fb8c00);
}

.icon-box.red {
    background: linear-gradient(135deg, #ef5350, #e53935);
}

.icon-box .icon {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

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

.section-subtitle {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
    margin-left: 56px;
}

.faq-desc {
    font-size: 14px;
    color: #1e88e5;
    text-decoration: underline;
    margin-left: 56px;
    margin-bottom: 16px;
}

.callback-section {
    margin-left: 56px;
    margin-bottom: 24px;
    padding: 16px;
    background-color: #fffbe6;
    border-left: 4px solid #ffe066;
    border-radius: 4px;
}

.callback-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.callback-header .warning-icon {
    font-size: 24px;
    margin-right: 12px;
}

.callback-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.callback-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    padding-left: 36px;
}

.cdn-section {
    margin-left: 56px;
    margin-bottom: 24px;
}

.cdn-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1e88e5;
    display: inline-block;
}

.cdn-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 12px;
}

.cdn-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin: 8px 0;
}

.faq-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin: 8px 0;
}

.red-text {
    color: #e53935;
    font-weight: 500;
}

.payment-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin: 8px 0;
}

.section-desc {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin: 16px 0;
}

.info-box {
    background-color: #f5f7fa;
    border-left: 4px solid #1e88e5;
    padding: 16px;
    margin-top: 16px;
    border-radius: 4px;
}

.info-box p {
    margin: 4px 0;
    font-size: 14px;
    color: #666;
}

.section-content {
    padding-left: 48px;
}

.section-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.info-box {
    background-color: #f5f8fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.info-box label {
    color: #333;
    font-weight: 500;
    margin-right: 8px;
}

.info-box a {
    color: #1e88e5;
    text-decoration: none;
    font-size: 14px;
}

.info-box a:hover {
    text-decoration: underline;
}

.subsection h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.sub-step {
    display: flex;
    margin-bottom: 24px;
}

.step-number {
    width: 28px;
    height: 28px;
    background-color: #1e88e5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    margin-right: 16px;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.step-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.step-content .tip {
    color: #999;
    font-size: 13px;
    margin-top: 4px;
}

.step-content ul {
    margin-left: 20px;
    margin-top: 8px;
}

.step-content ul li {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.screenshot-box {
    margin-top: 24px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
}

.screenshot-box p {
    background-color: #fafafa;
    padding: 12px 16px;
    margin: 0;
    color: #999;
    font-size: 13px;
    border-bottom: 1px solid #e8e8e8;
}

.screenshot-box {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
}

.macos-titlebar {
    display: flex;
    align-items: center;
    background-color: #2c2c2c;
    padding: 10px 16px;
}

.titlebar-dots {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background-color: #ff5f56;
}

.dot.yellow {
    background-color: #ffbd2e;
}

.dot.green {
    background-color: #27c93f;
}

.titlebar-title {
    color: #999;
    font-size: 13px;
    font-weight: 500;
}

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

.placeholder-img {
    min-height: 200px;
    background-color: #f5f5f5;
    border: 2px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.placeholder-img::after {
    content: attr(alt);
}

.ref-img-placeholder {
    display: block;
    max-width: 100%;
    height: auto;
    min-height: 150px;
    background-color: #fafafa;
    border: 1px solid #eee;
    border-radius: 4px;
}

.ref-img-placeholder::before {
    content: attr(alt);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 150px;
    color: #999;
    font-size: 13px;
}

.step-content a {
    color: #1e88e5;
    text-decoration: none;
    font-weight: 500;
}

.step-content a:hover {
    text-decoration: underline;
}

.rate-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.rate-table th,
.rate-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
}

.rate-table th {
    background-color: #fafafa;
    font-weight: 600;
    color: #333;
}

.rate-table td {
    color: #666;
}

.section-content ol {
    margin-left: 20px;
}

.section-content ol li {
    color: #666;
    font-size: 14px;
    line-height: 2;
}

.contact-info {
    margin-top: 16px;
}

.contact-item {
    margin-bottom: 12px;
    font-size: 14px;
}

.contact-item span {
    color: #666;
}

.contact-item a {
    color: #1e88e5;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.warning-box {
    background-color: #fff9e6;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    border-left: 4px solid #ff9800;
}

.warning-box.warning {
    background-color: #fff9e6;
    border-left-color: #ff9800;
}

.warning-box.error {
    background-color: #ffebee;
    border-left-color: #f44336;
}

.warning-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ff9800;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}

.warning-icon.error-icon {
    background-color: #f44336;
}

.warning-content {
    flex: 1;
}

.warning-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.warning-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.success-box {
    background-color: #e8f5e9;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    display: flex;
    align-items: flex-start;
    border-left: 4px solid #4caf50;
}

.success-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #4caf50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}

.success-content {
    flex: 1;
}

.success-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.success-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.settlement-steps {
    margin-bottom: 16px;
}

.settlement-step {
    display: flex;
    margin-bottom: 12px;
}

.step-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #1e88e5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}

.step-icon.red {
    background-color: #f44336;
}

.step-text {
    flex: 1;
}

.step-text p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 4px;
}

.step-text p:last-child {
    margin-bottom: 0;
}

.step-text a {
    color: #1e88e5;
    text-decoration: none;
}

.merchant-banner {
    background: linear-gradient(135deg, #7e57c2, #5e35b1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.merchant-banner p {
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
}

.banner-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.merchant-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.merchant-card {
    background-color: #fafafa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.merchant-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.merchant-card ul {
    list-style: none;
    padding: 0;
}

.merchant-card ul li {
    color: #666;
    font-size: 13px;
    line-height: 1.8;
}

.complaint-section {
    margin-top: 16px;
}

.complaint-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.complaint-section ol {
    margin-left: 20px;
}

.complaint-section ol li {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.api-details {
    margin-top: 24px;
}

.api-section {
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
}

.api-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.section-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.section-badge.v1 {
    background-color: #9e9e9e;
    color: white;
}

.section-badge.v2 {
    background-color: #4caf50;
    color: white;
}

.api-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.api-item:last-child {
    margin-bottom: 0;
}

.api-item .label {
    color: #999;
    font-size: 13px;
    margin-right: 8px;
}

.api-item .value {
    flex: 1;
    color: #333;
    font-size: 13px;
    font-family: monospace;
}

.copy-btn {
    background-color: #f5f5f5;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: background-color 0.2s;
}

.copy-btn:hover {
    background-color: #e8e8e8;
}

.api-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.action-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.action-btn.blue {
    background-color: #1e88e5;
    color: white;
}

.action-btn.red {
    background-color: #ef5350;
    color: white;
}

.action-btn.green {
    background-color: #4caf50;
    color: white;
}

.action-btn:hover {
    opacity: 0.9;
}

.radio-group {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-label input {
    margin-right: 8px;
}

.radio-label span:first-of-type {
    color: #333;
    font-size: 13px;
}

.radio-label .description {
    color: #999;
    font-size: 12px;
    margin-left: 4px;
}

.save-btn {
    background-color: #1e88e5;
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.save-btn:hover {
    background-color: #1976d2;
}

.faq-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8e8e8;
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.4;
}

.faq-item ol {
    padding-left: 24px;
    margin: 0;
}

.faq-item li {
    color: #555;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.faq-item li:last-child {
    margin-bottom: 0;
}

.footer {
    text-align: center;
    padding: 24px;
    color: #999;
    font-size: 13px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background-color: #fff;
    z-index: 1001;
    flex-direction: column;
    transition: right 0.3s ease;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    font-weight: 600;
}

.close-btn {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-list {
    list-style: none;
    padding: 8px 0;
    flex: 1;
}

.mobile-menu-list li {
    border-bottom: 1px solid #f5f5f5;
}

.mobile-menu-list li:last-child {
    border-bottom: none;
}

.mobile-menu-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.mobile-menu-list a:hover {
    background-color: #f8f9fa;
    color: #1e88e5;
}

.has-mobile-sub > a::after {
    content: '›';
    font-size: 18px;
    color: #ccc;
    transform: rotate(90deg);
}

.mobile-sub-menu {
    list-style: none;
    background-color: #fafafa;
    display: none;
}

.mobile-sub-menu li {
    border-bottom: none;
}

.mobile-sub-menu a {
    padding-left: 40px;
    font-size: 13px;
    color: #666;
}

.mobile-menu-divider {
    border-top: 1px solid #f0f0f0;
    margin: 0 16px;
}

.mobile-menu-bottom {
    padding: 16px 20px;
    padding-bottom: 40px;
}

.mobile-login-btn {
    width: 100%;
    background-color: #1e88e5;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        display: none;
    }
    
    .header-content {
        padding: 10px 16px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .logo img {
        width: 28px;
        height: 28px;
    }
    
    .container {
        flex-direction: column;
        padding: 16px;
    }
    
    .sidebar {
        display: none;
    }
    
    .main-content {
        padding: 16px;
        box-shadow: none;
        border-radius: 0;
    }
    
    .content-header h1 {
        font-size: 20px;
    }
    
    .section-content {
        padding-left: 0;
    }
    
    .section-header {
        flex-wrap: wrap;
    }
    
    .screenshot-box img {
        max-width: 100%;
    }
    
    .rate-table {
        font-size: 13px;
    }
    
    .rate-table th,
    .rate-table td {
        padding: 8px 6px;
    }
}