﻿.button-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 768px;
    margin: 20px auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.button-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

    /* 第一行两个按钮根据文字自适应 */
    .button-row.dual-buttons {
        justify-content: space-between;
    }

        .button-row.dual-buttons .btn {
            flex: 1; /* 相当于 flex-grow: 1; flex-shrink: 1; flex-basis: 0; */
            min-width: 0; /* 防止文本过长时溢出 */
            text-align: center; /* 文字居中 */
            padding: 10px; /* 可选：增加内边距让按钮更好看 */
            background: #007bff; /* 可选：按钮背景色 */
            color: white; /* 可选：文字颜色 */
            border-radius: 4px; /* 可选：圆角 */
            text-decoration: none; /* 移除下划线 */
        }

    /* 第二行单个按钮 */
    .button-row.single-button {
        justify-content: center;
    }
        .button-row.single-button a {
            width: 100%;
        }

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .btn:hover {
        background-color: #45a049;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        text-decoration: none;
    }

/* 响应式设计 - 小于等于768px时的样式 */
@media (max-width: 768px) {
    .button-row.dual-buttons {
        flex-direction: column;
        gap: 8px;
    }

        .button-row.dual-buttons .btn {
            width: 100%;
            box-sizing: border-box;
        }

    .btn {
        padding: 6px 10px;
        font-size:20px;
    }
}
