/* --- 全局样式 --- */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    padding: 2px;
    color: #333;
}

h1 {
    text-align: center;
    color: #444;
}

/* 主容器 */
.container {
    max-width: 900px;
    margin: 2px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* --- 手风琴头部 --- */
.accordion-header {
    background-color: #fff;
    color: #444;
    cursor: pointer;
    padding: 18px 24px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s background-color;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover, .accordion-header.active {
    background-color: #f8f9fa;
}

/* 右侧加减号 */
.accordion-header::after {
    content: '\002B'; 
    color: #777;
    font-weight: bold;
    font-size: 18px;
    transition: transform 0.3s;
}

.accordion-header.active::after {
    content: "\2212"; 
    transform: rotate(180deg);
}

/* --- 手风琴内容区域 --- */
.accordion-panel {
    padding: 0 24px;
    background-color: white;
    max-height: 0; /* 默认关闭 */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

/* --- 左右网格布局 --- */
.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 25px 0;
}

@media (max-width: 600px) {
    .panel-grid {
        grid-template-columns: 1fr;
    }
}

/* --- 内部盒子样式 --- */
.domain-box h3 {
    margin-top: 0;
    font-size: 1.1rem;
    padding-bottom: 10px;
    border-bottom: 3px solid #eee;
    display: flex;
    align-items: center;
}

.left-box h3 { color: #d9534f; border-color: #f8d7da; }
.right-box h3 { color: #28a745; border-color: #d4edda; }
.icon { margin-right: 8px; }

/* --- 列表与链接样式 --- */
.domain-list {
    list-style-type: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.domain-list li {
    margin-bottom: 8px;
}

/* 链接样式 */
.domain-list a {
    display: block; /* 让整个区域可点击 */
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    font-family: monospace;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

/* 链接悬停效果 */
.domain-list a:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    color: #0056b3;
    transform: translateX(5px); /* 微微右移 */
}

.empty-tip {
    color: #999;
    font-style: italic;
    padding: 10px;
    font-size: 14px;
}


/* --- 底部长按钮样式 --- */
.bottom-action {
    max-width: 900px; /* 和主容器保持同宽 */
    margin: 20px auto 40px; /* 上边距20px，居中，下边距40px(留点底空) */
}

.flat-btn {
    display: block; /* 让链接变成块级元素，占满宽度 */
    width: 100%;
    background-color: #2c3e50; /* 深蓝灰色，扁平风格 */
    color: #fff;
    text-align: center;
    padding: 16px 0; /* 增加高度 */
    border-radius: 8px; /* 圆角 */
    text-decoration: none; /* 去掉下划线 */
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.flat-btn:hover {
    background-color: #34495e; /* 悬停稍微变亮 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.flat-btn:active {
    transform: translateY(1px); /* 点击时的微动效 */
}