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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

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

.login-box,
.register-box,
.form-box,
.recharge-box,
.income-box,
.admin-login-box {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 50px auto;
}

.login-box h1,
.register-box h1,
.form-box h1,
.recharge-box h1,
.income-box h1,
.admin-login-box h1 {
    text-align: center;
    color: #667eea;
    margin-bottom: 10px;
}

.login-box h2,
.register-box h2,
.admin-login-box h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 12px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

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

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.text-center {
    text-align: center;
    margin-top: 20px;
}

.text-center a {
    color: #667eea;
    text-decoration: none;
}

.text-center a:hover {
    text-decoration: underline;
}

.dashboard-container {
    min-height: 100vh;
    background: #f5f5f5;
}

.dashboard-header {
    background: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-header h1 {
    color: #667eea;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.user-phone {
    font-size: 14px;
    color: #666;
}

.api-key-section {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.api-key-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.api-key {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #495057;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: all 0.2s;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-key:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #6c757d;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn svg {
    display: block;
}

.dashboard-content {
    padding: 30px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.card .balance,
.card .count {
    font-size: 28px;
    font-weight: bold;
    color: #667eea;
}

.section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.section h2 {
    color: #333;
    margin-bottom: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

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

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.status {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.status.paid {
    background: #d4edda;
    color: #155724;
}

.status.pending {
    background: #fff3cd;
    color: #856404;
}

.status.failed {
    background: #f8d7da;
    color: #721c24;
}

.status.frozen {
    background: #f8d7da;
    color: #721c24;
}

.status.normal {
    background: #d4edda;
    color: #155724;
}

.income {
    color: #28a745;
    font-weight: 600;
}

.amount-options {
    margin-bottom: 20px;
}

.amount-options h3 {
    margin-bottom: 15px;
    color: #555;
}

.amount-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.amount-btn {
    padding: 10px 20px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.amount-btn:hover,
.amount-btn.active {
    background: #667eea;
    color: white;
}

.qr-container {
    text-align: center;
    margin-top: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.qr-container h3 {
    margin-bottom: 20px;
    color: #555;
}

#qrCode {
    display: inline-block;
    margin: 20px 0;
}

.qr-container p {
    margin: 10px 0;
    color: #666;
}

.balance-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.balance-info p {
    font-size: 16px;
    color: #555;
}

.balance-info strong {
    color: #667eea;
    font-size: 20px;
}

.withdraw-section {
    margin-bottom: 30px;
}

.info-text {
    color: #888;
    margin-bottom: 15px;
    font-size: 14px;
}

.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: #667eea;
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

.orders-section,
.records-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.delete-box {
    max-width: 600px;
}

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.warning-box h3 {
    color: #856404;
    margin-bottom: 10px;
}

.warning-box p {
    color: #856404;
    margin-bottom: 15px;
}

.warning-box ul {
    margin-left: 20px;
    color: #856404;
}

.warning-box li {
    margin: 5px 0;
}

.admin-dashboard {
    min-height: 100vh;
    background: #f5f5f5;
}

.admin-header {
    background: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-header h1 {
    color: #667eea;
}

.admin-header nav {
    display: flex;
    gap: 20px;
}

.admin-header nav a {
    color: #666;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s;
}

.admin-header nav a:hover,
.admin-header nav a.active {
    background: #667eea;
    color: white;
}

.admin-content {
    padding: 30px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions .btn {
    flex: 1;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #333;
}

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

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: #333;
}

.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.confirm-modal {
    background: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: confirmFadeIn 0.3s ease;
}

@keyframes confirmFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.confirm-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.confirm-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.confirm-message {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.confirm-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.confirm-cancel,
.confirm-confirm {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.confirm-cancel {
    background: #e0e0e0;
    color: #333;
}

.confirm-cancel:hover {
    background: #d0d0d0;
}

.confirm-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.confirm-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.alert {
    padding: 12px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 400px;
    animation: toast-slide-in 0.3s ease-out;
    position: relative;
}

.toast-icon {
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #333;
}

.toast-success {
    border-left: 4px solid #28a745;
}

.toast-success .toast-icon {
    color: #28a745;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-error .toast-icon {
    color: #dc3545;
}

.toast-warning {
    border-left: 4px solid #ffc107;
}

.toast-warning .toast-icon {
    color: #ffc107;
}

.toast-info {
    border-left: 4px solid #17a2b8;
}

.toast-info .toast-icon {
    color: #17a2b8;
}

.toast-dismiss {
    animation: toast-slide-out 0.3s ease-in forwards;
}

@keyframes toast-slide-in {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toast-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: loading-spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes loading-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn .loading {
    display: inline-block;
}

.btn:not(:disabled) .loading {
    display: none;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .login-box,
    .register-box,
    .form-box,
    .recharge-box,
    .income-box,
    .admin-login-box {
        padding: 20px;
        margin: 20px auto;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .user-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .user-details {
        align-items: flex-start;
        width: 100%;
    }
    
    .api-key-section {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .api-key {
        max-width: 100%;
        width: 100%;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .admin-header nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .table {
        font-size: 12px;
    }
    
    .amount-buttons {
        flex-direction: column;
    }
}

.home-container {
    min-height: 100vh;
    background: #f5f5f5;
}

.home-footer {
    background: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
    width: 100%;
}

.footer-content p {
    margin: 5px 0;
    font-size: 14px;
}

.footer-content a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dotted #fff;
}

.footer-content a:hover {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}

.home-header {
    background: white;
    padding: 20px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.home-header h1 {
    color: #667eea;
    margin: 0;
    font-size: 24px;
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 首页登录注册按钮美化 */
.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.auth-buttons .btn {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.auth-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.auth-buttons .btn:hover::before {
    left: 100%;
}

.auth-buttons .btn.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.auth-buttons .btn.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.auth-buttons .btn:not(.btn-secondary) {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border-color: #ff6b6b;
}

.auth-buttons .btn:not(.btn-secondary):hover {
    background: linear-gradient(135deg, #ff5252, #e53935);
    border-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-buttons {
        gap: 8px;
    }
    
    .auth-buttons .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
    }
    
    .home-header h1 {
        font-size: 20px;
    }
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-size: 14px;
    color: #666;
}

.home-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    margin-bottom: 40px;
    color: white;
}

.hero-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 18px;
    opacity: 0.9;
}

.api-list-section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.section-header h3 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.search-box input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 300px;
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
}

.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.api-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.api-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.api-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.api-card-header h4 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.api-price {
    color: #667eea;
    font-weight: bold;
    font-size: 16px;
}

.api-card-body {
    margin-bottom: 15px;
}

.api-path {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #666;
    background: white;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.api-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.api-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #888;
}

.api-calls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.api-method {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.api-card-footer {
    display: flex;
    justify-content: center;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.api-detail-container {
    min-height: 100vh;
    background: #f5f5f5;
}

.api-detail-header {
    background: white;
    padding: 20px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* API详情页登录注册按钮美化 */
.api-detail-header .auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.api-detail-header .auth-buttons .btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.api-detail-header .auth-buttons .btn.btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #e9ecef;
}

.api-detail-header .auth-buttons .btn.btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.api-detail-header .auth-buttons .btn:not(.btn-secondary) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.api-detail-header .auth-buttons .btn:not(.btn-secondary):hover {
    background: #5568d3;
    border-color: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.api-detail-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 30px;
}

.api-info-section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.api-header {
    margin-bottom: 25px;
}

.api-header h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

.api-detail-header h1 {
    color: #667eea;
    margin: 0;
}

.site-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s;
}

.site-link:hover {
    color: #5568d3;
}

.api-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
}

.badge-method {
    background: #667eea;
    color: white;
}

.badge-price {
    background: #28a745;
    color: white;
}

.badge-calls {
    background: #6c757d;
    color: white;
}

.api-path-box {
    margin-bottom: 20px;
}

.api-path-box label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.api-path-code {
    display: block;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #495057;
    border: 1px solid #e9ecef;
}

.api-description {
    margin-bottom: 20px;
}

.api-description label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.api-description p {
    color: #495057;
    line-height: 1.6;
}

.api-owner {
    margin-bottom: 20px;
}

.api-owner label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.api-owner span {
    color: #495057;
}

.api-doc-section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.api-doc-section h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.doc-block {
    margin-bottom: 30px;
}

.doc-block h4 {
    font-size: 16px;
    color: #495057;
    margin-bottom: 12px;
}

.code-block {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 15px;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #495057;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.code-block code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #495057;
}

.doc-note {
    color: #6c757d;
    font-size: 14px;
    margin-top: 10px;
    font-style: italic;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 20px;
    }
    
    .hero-section h2 {
        font-size: 28px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .api-grid {
        grid-template-columns: 1fr;
    }
    
    .api-detail-content {
        padding: 0 15px;
    }
    
    .api-info-section,
    .api-doc-section {
        padding: 20px;
    }
    
    .api-badges {
        flex-direction: column;
        gap: 8px;
    }
}