* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding-bottom: 40px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
    color: white;
    padding: 30px 0;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2.5rem;
}

h1 {
    font-size: 2.2rem;
    font-weight: 600;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 5px;
}

.disclaimer {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0 30px;
    border-left: 4px solid #ffc107;
}

.download-section {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.download-section:hover {
    transform: translateY(-5px);
}

h2 {
    color: #0078d4;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaeaea;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.download-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #0078d4;
}

.directx-item {
    border-left-color: #107c10;
}

.download-item h3 {
    color: #005a9e;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.directx-item h3 {
    color: #107c10;
}

.download-item p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background-color: #0078d4;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #005a9e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-directx {
    background-color: #107c10;
}

.btn-directx:hover {
    background-color: #0e6b0e;
}

.btn i {
    font-size: 1rem;
}

.info-box {
    background-color: #e7f3ff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    border-left: 4px solid #0078d4;
}

.directx-info-box {
    background-color: #e7f7e7;
    border-left-color: #107c10;
}

.info-box h3 {
    color: #005a9e;
    margin-bottom: 10px;
}

.directx-info-box h3 {
    color: #107c10;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: #666;
    font-size: 0.9rem;
}

.version-badge {
    display: inline-block;
    background-color: #e7f3ff;
    color: #0078d4;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 10px;
    font-weight: 600;
}

.directx-version-badge {
    background-color: #e7f7e7;
    color: #107c10;
}

.tab-nav {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #eaeaea;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-btn:hover {
    color: #0078d4;
}

.tab-btn.active {
    color: #0078d4;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #0078d4;
}

.directx-tab.active {
    color: #107c10;
}

.directx-tab.active::after {
    background-color: #107c10;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Tools 标签页特定样式 */
.tools-tab.active {
    color: #ff6b35;
}

.tools-tab.active::after {
    background-color: #ff6b35;
}

.tools-item {
    border-left-color: #ff6b35;
}

.tools-item h3 {
    color: #ff6b35;
}

.btn-tools {
    background-color: #ff6b35;
}

.btn-tools:hover {
    background-color: #e55a2b;
}

.tools-info-box {
    background-color: #fff5f0;
    border-left-color: #ff6b35;
}

.tools-info-box h3 {
    color: #ff6b35;
}

.section-description {
    color: #666;
    margin-bottom: 25px;
    font-style: italic;
}

/* 动态声明样式 */
#dynamic-disclaimer {
    text-align: center;
    margin-top: 40px;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

#dynamic-disclaimer p {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.8rem;
    }

    .tab-nav {
        flex-direction: column;
    }

    .tab-btn {
        text-align: left;
        border-bottom: 1px solid #eaeaea;
    }

    .tab-btn.active::after {
        display: none;
    }
}


/* 复制按钮状态样式 */
.copy-btn.success {
    background-color: #28a745 !important;
}

.copy-btn.error {
    background-color: #dc3545 !important;
}

/* 复制通知样式 */
#copy-notification i {
    font-size: 1.2rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #copy-notification {
        left: 20px;
        right: 20px;
        top: 10px;
        transform: translateY(-150%);
    }

    #copy-notification.show {
        transform: translateY(0);
    }
}

.copy-btn {
    outline: none !important;
    border: none;
}
/* 单行代码块样式 */
.single-line-code {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 15px;
    margin: 15px 0 20px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    color: #333;
    overflow-x: auto;
    white-space: nowrap;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.single-line-code code {
    color: #545454;
    background: none;
    padding: 0;
    font-size: 0.95rem;
    border: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .single-line-code {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .single-line-code code {
        font-size: 0.85rem;
    }
}
