/* 全局重置与防溢出 */
* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
body.portable-body { background-color: #f0f0f0; color: #111111; font-family: "Helvetica Neue", Arial, sans-serif; overflow-x: hidden; width: 100%; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* APP 沉浸式外层容器 */
.portable-app-wrapper { max-width: 600px; margin: 0 auto; background: #ffffff; min-height: 100vh; position: relative; box-shadow: 0 0 30px rgba(0,0,0,0.15); padding-bottom: 70px; }

/* 顶部 Header */
.portable-header { background: #111111; color: #ffffff; height: 50px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; position: sticky; top: 0; z-index: 1000; }
.portable-logo { font-size: 18px; font-weight: 900; letter-spacing: 1px; }
.portable-header-icon { font-size: 20px; color: #ffffff; cursor: pointer; }

/* 公告 */
.portable-notice { background: #f9f9f9; border-left: 3px solid #111111; padding: 10px 15px; font-size: 12px; color: #555; margin: 15px; border-radius: 2px; }

/* 按钮规范 */
.portable-btn { border: 2px solid #111111; background: #ffffff; color: #111111; padding: 10px 15px; font-size: 12px; font-weight: bold; text-align: center; cursor: pointer; transition: all 0.3s; display: inline-block; width: 100%; text-transform: uppercase; }
.portable-btn:hover { background: #111111; color: #ffffff; }
.portable-btn-ghost { border: 2px solid #ffffff; background: transparent; color: #ffffff; padding: 10px 25px; }
.portable-btn-ghost:hover { background: #ffffff; color: #111111; }

/* 方框一：Hero Banner */
.portable-hero-sec { position: relative; min-height: 350px; background: #222222; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.portable-hero-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; z-index: 1; }
.portable-hero-content { position: relative; z-index: 2; padding: 20px; width: 100%; }
.portable-hero-title { font-size: 28px; font-weight: 900; color: #ffffff; text-transform: uppercase; margin-bottom: 10px; letter-spacing: 1px; }
.portable-price-white { font-size: 20px; font-weight: bold; color: #ffffff; margin-bottom: 20px; }

/* 方框二：服务保障微型网格 */
.portable-services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 30px 20px; background: #ffffff; border-bottom: 10px solid #f5f5f5; text-align: center; }
.portable-service-item { display: flex; flex-direction: column; align-items: center; }
.portable-service-circle { width: 50px; height: 50px; border-radius: 50%; border: 1px solid #cccccc; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; overflow: hidden; padding: 5px; }
.portable-service-circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.portable-service-title { font-size: 13px; font-weight: 500; color: #333; margin-bottom: 5px; }

/* 方框三：黑色横幅特惠 */
.portable-black-banner { background: #111111; color: #ffffff; text-align: center; padding: 30px 20px; border-bottom: 10px solid #f5f5f5; }
.portable-bb-title { font-size: 18px; font-weight: 900; text-transform: uppercase; margin-bottom: 10px; }

/* 方框四 & 六：商品 2列网格 */
.portable-sec-title-wrap { text-align: center; margin: 30px 0 20px; position: relative; display: flex; justify-content: center; align-items: center; }
.portable-sec-title { font-size: 16px; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; position: relative; z-index: 2; background: #ffffff; padding: 0 15px; }
.portable-sec-title-wrap::after { content: ""; position: absolute; left: 20px; right: 20px; top: 50%; height: 2px; background: #111111; z-index: 1; }

.portable-grid-two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 0 15px 30px; }
.portable-card { background: #ffffff; display: flex; flex-direction: column; text-align: center; }
.portable-card-img-wrap { background: #f5f5f5; padding: 15px; margin-bottom: 15px; display: flex; justify-content: center; align-items: center; height: 180px; }
.portable-card-img { max-height: 100%; object-fit: contain; }
.portable-card-title { font-size: 13px; font-weight: 300; color: #555; margin-bottom: 5px; }
.portable-card-price { font-size: 14px; font-weight: 600; color: #111; margin-bottom: 15px; }

/* 方框五：暗色海报 Bundle */
.portable-bundle-sec { background: #111111; position: relative; padding: 50px 20px; text-align: center; color: #fff; overflow: hidden; margin-bottom: 30px; }
.portable-bundle-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; z-index: 1; }
.portable-bundle-content { position: relative; z-index: 2; }
.portable-bundle-title { font-size: 20px; font-weight: 900; text-transform: uppercase; margin-bottom: 10px; letter-spacing: 1px; }

/* 表格与内页 */
.portable-table-wrap { padding: 0 15px 40px; }
.portable-table { width: 100%; border-collapse: collapse; background: #ffffff; border: 1px solid #eeeeee; font-size: 12px; }
.portable-table th, .portable-table td { padding: 10px; text-align: left; border-bottom: 1px solid #f5f5f5; }
.portable-table th { background: #fafafa; font-weight: bold; text-transform: uppercase; }
.portable-badge { display: inline-block; padding: 2px 6px; font-size: 10px; font-weight: bold; text-transform: uppercase; }
.portable-badge-auto { background: #111111; color: #ffffff; }
.portable-badge-manual { background: #eeeeee; color: #555555; }
.portable-detail-wrap { padding: 20px; }

/* 底部区域 */
.portable-footer { background: #111111; color: #aaaaaa; padding: 40px 20px 80px; text-align: center; font-size: 12px; }
.portable-footer-logo { font-size: 22px; font-weight: 900; color: #ffffff; margin-bottom: 10px; }
.portable-footer-social { display: flex; justify-content: center; gap: 15px; margin: 20px 0; }
.portable-footer-social span { width: 30px; height: 30px; border: 1px solid #aaaaaa; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 12px; }
.portable-copyright { border-top: 1px solid #333333; padding-top: 15px; }

/* 悬浮底部菜单 (APP Native Feel) */
.portable-bottom-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 600px; background: #111111; display: flex; justify-content: space-around; align-items: center; height: 60px; z-index: 1000; box-shadow: 0 -2px 15px rgba(0,0,0,0.2); }
.portable-bottom-bar a { color: #ffffff; font-size: 22px; display: flex; justify-content: center; align-items: center; width: 50px; height: 50px; position: relative; }
.portable-bottom-bar a:hover { color: #aaaaaa; }
.portable-bottom-badge { position: absolute; top: 8px; right: 5px; background: #ffffff; color: #111111; border-radius: 50%; width: 14px; height: 14px; font-size: 10px; font-weight: bold; display: flex; align-items: center; justify-content: center; }

/* 通用防溢出补丁 */
[style*="nowrap"], div[class*="title"], p[class*="title"], a[class*="title"], .portable-text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
