/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* 容器样式 */
.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 90%;
    text-align: center;
}

/* 标题样式 */
h1 {
    color: #333;
    margin-bottom: 10px;
   font-size: 20px;
}

/* 表格样式 */
.table {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 每行样式 */
.row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

/* 最后一行去掉底部边框 */
.row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* 图片样式 */
.image {
    flex: 0 0 30%; /* 占宽度 30% */
    display: flex;
    justify-content: center;
    align-items: center;
}

.image img {
    max-width: 65%;
    height: auto;
    border-radius: 10px;
}

/* 图片按键样式 */
.image-button {
    width: 38%;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.image-button:hover {
    transform: scale(1.05);
}

/* 文字样式 */
.text {
    flex: 0 0 50%; /* 占宽度 50% */
    text-align: center;
    font-size: 16px;
    color: #555;
}

.textC {
    flex: 0 0 100%; /* 占宽度 30% */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 16px;
    color: #555;
}


/* 按钮样式 */
.button {
    display: inline-block;
    width: auto;
    padding: 10px;
    background-color: orange;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: darkorange;
}

/* 广告位样式 */
.advertisement {
    margin-top: 20px;
    padding: 15px;
    background-color: #f1f1f1;
    border-radius: 10px;
    font-size: 14px;
    color: #666;
}

#youtube-row {
    align-items: center;
    padding: 15px 0;
    border-top: 1px dashed #eee;
    margin-top: 10px;
}

/* 红色按钮样式 */
.yt-button {
    display: inline-block !important;
    background-color: #e62117 !important;
    color: white !important;
    padding: 10px 20px !important;
    margin: 5px 5px 5px 0 !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    font-size: 14px !important;
}

.yt-button:hover {
    background-color: #cc181e;
    text-decoration: none;
}

#yt-text {
    font-size: 13px;
    color: #888;
    margin-top: 5px;
}

/* 手机端适配 */
@media (max-width: 600px) {
    .row {
        flex-direction: column; /* 手机端改为垂直排列 */
        text-align: center;
    }

    .image,
    .text {
        flex: 1; /* 手机端占满宽度 */
    }

    .image img {
        width: 100%; /* 手机端图片宽度自适应 */
        max-width: 200px;
    }

    .video-item {
        width: 100%; /* 手机端一行一个 */
        padding-bottom: 56.25%; /* 恢复标准 16:9 比例 */
    }

   .yt-button {
        display: block;
        width: 100%;
        margin-right: 0;
        box-sizing: border-box;
    }
    
    #youtube-row .text {
        padding: 0 15px; /* 增加手机端边距 */
    }
}