/* style.css - 公司品牌展示页面样式（优化版） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* 主背景：纯黑色 */
body {
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* 手机页面主容器 - 固定宽度430px，背景为图片 img/bg.jpg */
.app-container {
    width: 100%;
    max-width: 430px;
    min-width: 320px;
    margin: 0 auto;
    background-image: url('../static/img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: local;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 背景图片加载失败时的备用背景 */
.app-container.bg-fallback {
    background-image: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
}

/* 滚动内容区域 - 上下留出固定横幅的空间，背景透明透出容器背景图 */
.scroll-content {
    padding-top: 60px;
    padding-bottom: 60px;
    animation: fadeIn 0.5s ease-out;
    background-color: transparent;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========= 顶部固定横幅 ========= */
.fixed-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    z-index: 1000;
    background-color: transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-banner {
    position: relative;
    width: 100%;
    height: 60px;
    line-height: 0;
    background-color: transparent;
}

.header-img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    display: block;
    background-color: transparent;
}

/* ========= 底部固定横幅（无按钮版本） ========= */
.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    z-index: 1000;
    background-color: transparent;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.footer-banner {
    position: relative;
    width: 100%;
    height: 80px;
    line-height: 0;
    background-color: transparent;
}

.footer-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
    background-color: transparent;
}

/* 广告横幅图片区域 */
.ad-banner {
    width: 100%;
    margin: -30px 0;
    line-height: 0;
    padding: 0 12px;
    background-color: transparent;
}

.ad-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.ad-img:hover {
    transform: scale(1.02);
}

/* 按钮区域标题 */
.buttons-section {
    padding: 0 12px;
    margin-top: 8px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.title-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.6), transparent);
}

.title-text {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 按钮网格区域 */
.buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background-color: transparent;
}

/* 每一行（一排2个） */
.button-row {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    background-color: transparent;
}

/* 横式按钮 - 纯灰色背景，金色描边，大圆角，logo无底色 */
.brand-btn {
    flex: 1;
    background: #2a2a2a;
    border-radius: 28px;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid #d4944a;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
    min-height: 80px;
    position: relative;
}

.brand-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border-color: #FFA500;
    background: #5a626e;
}

.brand-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 左侧 logo 区域 - 无底色 */
.btn-logo {
    width: 33.333%;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.brand-btn:hover .logo-img {
    transform: scale(1.05);
}

/* 备用logo文字样式 */
.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ff8c00, #ff6b00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 右侧文字区域 */
.btn-text {
    width: 66.666%;
    padding: 12px 12px 12px 8px;
    text-align: left;
    background: transparent;
}

.btn-name {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    display: block;
    line-height: 1.3;
    margin-bottom: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-type {
    font-size: 11px;
    color: #FFD700;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.3);
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* ========= 优化后的文本区域样式：高级磨砂玻璃+金色渐变+发光效果 ========= */
.notice-text {
    text-align: center;
    margin: 24px 16px 20px 16px;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    border-radius: 60px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 12px rgba(255, 215, 0, 0.2);
    color: #FFECB3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.notice-text:hover {
    border-color: rgba(255, 140, 0, 0.8);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 18px rgba(255, 215, 0, 0.4);
    background: rgba(0, 0, 0, 0.75);
}

.notice-icon {
    color: #FFD966;
    font-size: 16px;
    font-weight: normal;
    animation: softGlow 1.5s ease-in-out infinite alternate;
}

@keyframes softGlow {
    0% {
        text-shadow: 0 0 0px #FFD700;
        opacity: 0.7;
    }
    100% {
        text-shadow: 0 0 5px #FFA500;
        opacity: 1;
    }
}

/* 响应式优化 */
@media (max-width: 430px) {
    .fixed-header,
    .fixed-footer,
    .app-container {
        width: 100%;
        max-width: 430px;
    }
    
    .scroll-content {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .btn-name {
        font-size: 15px;
    }
    
    .btn-type {
        font-size: 10px;
        padding: 2px 8px;
    }
    
    .logo-img {
        width: 42px;
        height: 42px;
    }
    
    .logo-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
    
    .notice-text {
        font-size: 12px;
        padding: 12px 16px;
        margin: 20px 12px;
        gap: 6px;
    }
    
    .notice-icon {
        font-size: 14px;
    }
    
    .section-title {
        margin-bottom: 16px;
    }
    
    .title-text {
        font-size: 18px;
    }
    
    .brand-btn {
        border-radius: 24px;
        min-height: 75px;
    }
}

/* 确保所有区域背景透明，透出 .app-container 的背景图 */
.ad-banner,
.buttons-section,
.buttons-grid,
.button-row,
.scroll-content {
    background-color: transparent !important;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 140, 0, 0.5);
    border-radius: 2px;
}