.container {
    width: 100%;
    max-width: 1340px;
}

button {
    cursor: pointer;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
}

button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

textarea {
    width: 96%;
    height: 458px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: none;
}

textarea:focus {
    outline: none;
    border-color: #4285f4;
}

/* 主内容区 */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.card-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.card-header h2 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.card-body {
    padding: 20px;
}

.btn-group {
    margin-top: 15px;
    display: flex;
    flex-wrap: gap;
    gap: 10px;
    align-items: center;
}

.btn-primary {
    background-color: #4285f4;
    color: white;
}

.btn-secondary {
    background-color: #34a853;
    color: white;
}

.btn-default {
    background-color: #F44336;
    color: #ffffff;
    margin-left: auto;
}

/* 结果区域 */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-stats {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.export-btn {
    background-color: #0f9d58;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.result-container {
    height: 450px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    overflow-y: auto;
}

.result-hint {
    margin-top: 30px;
    font-size: 14px;
    color: #666;
    display: flex;
    justify-content: space-between;
}

.result-hint a {
    color: #4285f4;
    text-decoration: none;
}

.result-hint a:hover {
    text-decoration: underline;
}

/* 分组样式 */
.group {
    margin-bottom: 15px;
}

.group-header {
    background-color: #f8f9fa;
    padding: 8px 12px;
    border: 1px solid #eee;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.group-header i {
    margin-right: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.group-header .count {
    font-size: 12px;
    color: #666;
    margin-left: 8px;
}

.group-content {
    border: 1px solid #eee;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    max-height: 200px;
    transition: max-height 0.3s ease;
}

.group-list {
    list-style: none;
}

.group-item {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f1f1;
}

.group-item:hover {
    background-color: #f9f9f9;
}

.group-item .name {
    font-weight: 500;
    font-size: 14px;
}

.group-item .url {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    word-break: break-all;
}

/* 使用说明 */
.instructions {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.instructions h3 {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.instructions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .instructions-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.instructions-section h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #4285f4;
}

.instructions-section p {
    margin-bottom: 8px;
}

.instructions-section ul {
    padding-left: 20px;
}

.instructions-section li {
    margin-bottom: 5px;
}

code {
    background-color: #f1f1f1;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 13px;
}


/* 通知提示 */
#notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    border-radius: 4px;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

#notification.show {
    transform: translateY(0);
    opacity: 1;
}

#notification.success {
    background-color: #34a853;
}

#notification.error {
    background-color: #ea4335;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.5);
    border-radius: 3px;
}