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

.ad-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ad-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-width: 300px;
}

.ad-table td {
    padding: 10px 5px;
    border: 1px solid #f0f0f0;
    vertical-align: middle;
    text-align: center;
    min-width: 80px;
}

.ad-link {
    display: inline-block;
    width: 100%;
    height: 100%;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    font-size: 13px;
    line-height: 1.4;
    padding: 10px 8px;
    border: 1px dashed #e0e0e0;
    border-radius: 4px;
    color: #333333;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    word-wrap: break-word;
    box-sizing: border-box;
}

.ad-link:hover {
    background: #f8fff0;
    border-color: #7FBA00;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(127, 186, 0, 0.1);
}

@media (max-width: 768px) {
    .ad-table td {
        min-width: 70px;
        padding: 8px 3px;
    }

    .ad-link {
        font-size: 12px;
        padding: 8px 6px;
    }
}

@media (max-width: 480px) {
    .ad-table td {
        min-width: 60px;
        padding: 6px 2px;
    }

    .ad-link {
        font-size: 11px;
        line-height: 1.3;
        word-wrap: break-word;
    }
}

.az-stats-container {
    all: initial;
    display: block;
    text-align: center;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 10px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.az-stats-text {
    all: initial;
    display: block;
    font-size: 22px;
    font-weight: bold;
    line-height: 2;
    color: #fff;
    text-align: center;
    font-family: Arial, sans-serif;
}

.az-stat-label {
    all: initial;
    display: inline;
    color: #fff;
    font-family: Arial, sans-serif;
    font-weight: normal;
    text-shadow: 0 0 5px #000, 0 0 10px #000;
}

.az-today-pv {
    all: initial;
    display: inline;
    font-family: Arial, sans-serif;
    font-weight: bold;
    animation: az-colorChangeToday 3s infinite alternate;
}

.az-yesterday-pv {
    all: initial;
    display: inline;
    font-family: Arial, sans-serif;
    font-weight: bold;
    animation: az-colorChangeYesterday 3s infinite alternate;
}

.az-load-time {
    all: initial;
    display: inline;
    font-family: Arial, sans-serif;
    font-weight: bold;
    animation: az-colorChangeLoadTime 3s infinite alternate;
}

@keyframes az-colorChangeToday {
    0% {
        color: #ff0066;
        text-shadow: 0 0 10px #ff0066, 0 0 20px #ff0066, 0 0 30px #ff0066;
    }

    33% {
        color: #ff9900;
        text-shadow: 0 0 10px #ff9900, 0 0 20px #ff9900, 0 0 30px #ff9900;
    }

    66% {
        color: #33cc33;
        text-shadow: 0 0 10px #33cc33, 0 0 20px #33cc33, 0 0 30px #33cc33;
    }

    100% {
        color: #ff0066;
        text-shadow: 0 0 10px #ff0066, 0 0 20px #ff0066, 0 0 30px #ff0066;
    }
}

@keyframes az-colorChangeYesterday {
    0% {
        color: #3399ff;
        text-shadow: 0 0 10px #3399ff, 0 0 20px #3399ff, 0 0 30px #3399ff;
    }

    33% {
        color: #9966ff;
        text-shadow: 0 0 10px #9966ff, 0 0 20px #9966ff, 0 0 30px #9966ff;
    }

    66% {
        color: #ff66cc;
        text-shadow: 0 0 10px #ff66cc, 0 0 20px #ff66cc, 0 0 30px #ff66cc;
    }

    100% {
        color: #3399ff;
        text-shadow: 0 0 10px #3399ff, 0 0 20px #3399ff, 0 0 30px #3399ff;
    }
}

@keyframes az-colorChangeLoadTime {
    0% {
        color: #00ffcc;
        text-shadow: 0 0 10px #00ffcc, 0 0 20px #00ffcc, 0 0 30px #00ffcc;
    }

    33% {
        color: #ffcc00;
        text-shadow: 0 0 10px #ffcc00, 0 0 20px #ffcc00, 0 0 30px #ffcc00;
    }

    66% {
        color: #cc00ff;
        text-shadow: 0 0 10px #cc00ff, 0 0 20px #cc00ff, 0 0 30px #cc00ff;
    }

    100% {
        color: #00ffcc;
        text-shadow: 0 0 10px #00ffcc, 0 0 20px #00ffcc, 0 0 30px #00ffcc;
    }
}

.az-last-updated {
    all: initial;
    display: block;
    font-size: 14px;
    color: #fff;
    margin-top: 15px;
    text-align: center;
    text-shadow: 0 0 5px #000, 0 0 10px #000;
    font-family: Arial, sans-serif;
}

:root {
    --jd-color: #e2231a;
    --sogou-color: #ff5900;
    --yanxuan-color: #ff6b35;
}

.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e9ecef;
}

.tab-btn {
    flex: 1;
    padding: 12px 0;
    border: none;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    color: #666;
}

.tab-btn.active {
    background: #fff;
    color: currentColor;
    border-bottom: 3px solid currentColor;
}

.tab-btn[data-target="jd"]:hover, 
        .tab-btn[data-target="jd"].active {
    color: var(--jd-color);
}

.tab-btn[data-target="sogou"]:hover, 
        .tab-btn[data-target="sogou"].active {
    color: var(--sogou-color);
}

.tab-btn[data-target="yanxuan"]:hover, 
        .tab-btn[data-target="yanxuan"].active {
    color: var(--yanxuan-color);
}

.tool-panel {
    display: none;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

.tool-panel.active {
    display: block;
}

.panel-header {
    margin-bottom: 20px;
}

.panel-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.jd .panel-header h2 {
    color: var(--jd-color);
}

.sogou .panel-header h2 {
    color: var(--sogou-color);
}

.yanxuan .panel-header h2 {
    color: var(--yanxuan-color);
}

.upload-area {
    position: relative;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f9fa;
}

.upload-area:hover {
    border-color: currentColor;
    background: #fff;
}

.upload-area.dragover {
    border-color: currentColor;
    background: #f0f7ff;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 12px;
    color: #666;
}

.upload-text {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.upload-note {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

.preview-container {
    margin: 16px 0;
    display: none;
}

.preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.upload-btn {
    width: 100%;
    padding: 12px;
    background: currentColor;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s;
}

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

.jd .upload-btn {
    background: var(--jd-color);
}

.sogou .upload-btn {
    background: var(--sogou-color);
}

.yanxuan .upload-btn {
    background: var(--yanxuan-color);
}

.security-code {
    margin: 16px 0;
}

.security-code input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.security-code label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.security-code .hint {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

.result-panel {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    background: #f8fff9;
    display: none;
}

.result-panel.error {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.result-panel.active {
    display: block;
}

.info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

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

.info-label {
    min-width: 80px;
    color: #666;
    font-weight: 500;
}

.info-value {
    flex: 1;
    color: #333;
    word-break: break-all;
    font-family: monospace;
}

.copy-btn {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    margin-left: 12px;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: #0056b3;
}

.yanxuan .copy-btn {
    background: var(--yanxuan-color);
}

.yanxuan .copy-btn:hover {
    background: #e55a2b;
}

.image-preview {
    margin: 16px 0;
    text-align: center;
}

.security-code-result {
    background: #e6f7ff;
    border-left: 4px solid #1890ff;
    padding: 12px 16px;
    margin-top: 16px;
    border-radius: 4px;
    font-size: 15px;
}

.security-code-result strong {
    color: #1890ff;
}

.security-query {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    margin: 24px 0;
}

.security-query h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #333;
    font-size: 20px;
}

.security-query input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.security-query button {
    width: 100%;
    padding: 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.security-query button:hover {
    background: #218838;
}

.query-result {
    margin-top: 16px;
    padding: 16px;
    border-radius: 8px;
    background: #f8f9fa;
    display: none;
}

.query-result.active {
    display: block;
}

.query-result h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #333;
}

.query-result-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 15px;
}

.result-grid-item {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.result-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.thumbnail-container {
    display: flex;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumbnail-item {
    position: relative;
    min-width: 200px;
    max-width: 100%;
    margin-right: 20px;
}

.result-grid-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.result-grid-platform {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
}

.platform-jd {
    background: rgba(226, 35, 26, 0.1);
    color: #e2231a;
}

.platform-sogou {
    background: rgba(255, 89, 0, 0.1);
    color: #ff5900;
}

.platform-yanxuan {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
}

.result-grid-date {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.result-grid-info {
    padding: 0 5px;
}

.result-grid-row {
    margin: 8px 0;
    font-size: 15px;
    color: #333;
}

.result-grid-meta {
    margin-top: 15px;
    border-top: 1px dashed #e0e0e0;
    padding-top: 15px;
}

.link-item {
    margin-bottom: 12px;
}

.link-item label {
    font-weight: 500;
    color: #555;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.link-value {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
    color: #333;
    word-break: break-all;
    font-family: monospace;
}

.copy-url-btn {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.3s;
    width: 100%;
}

.copy-url-btn:hover {
    background: #0056b3;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
