/* ===== Section 通用 ===== */
section {
    padding: 80px 24px;
}

section:nth-child(even) {
    background: #ffffff;
}

section:nth-child(odd) {
    background: #fafafa;
}

.section-container {
    max-width: 1000px;
    margin: 0 auto;
}

section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 32px;
    padding-left: 16px;
    border-left: 4px solid #d4a017;
}

/* ===== 链接卡片网格 ===== */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    text-decoration: none;
    color: #555;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    text-align: center;
    min-height: 56px;
}

.link-card:hover {
    color: #d4a017;
    border-color: #f5d76e;
    box-shadow: 0 4px 16px rgba(212, 160, 23, 0.15);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #fffef5, #ffffff);
}

/* ===== 带图标的卡片（图标在上文字在下） ===== */
.link-card-icon {
    flex-direction: column;
    gap: 8px;
    padding: 20px 12px 16px;
    min-height: 90px;
}

.card-icon-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

/* ===== 带二级菜单的卡片 ===== */
.has-submenu {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.has-submenu .card-label {
    pointer-events: none;
}

.has-submenu .sub-arrow {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.has-submenu:hover .sub-arrow {
    transform: rotate(90deg);
}

.submenu {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 100;
    overflow: hidden;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.submenu-item {
    display: block;
    padding: 10px 20px;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
}

.submenu-item:hover {
    color: #d4a017;
    background: rgba(212, 160, 23, 0.06);
}

.submenu-item + .submenu-item {
    border-top: 1px solid #f5f5f5;
}
