/* css/layout.css */
/* 此文件包含所有非弹窗的页面样式 */
/* --- 顶部导航栏 (index.html) --- */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 80px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: calc(100% - 80px);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 1400px; /* [PC优化] 增大最大宽度 */
    border-radius: 10px;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.logo-container {
    display: flex;
    align-items: center;
    font-size: 50px;
    font-weight: bold;
    color: #fff;
}
.order-btn-sm {
    background-color: transparent;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.7);
}
.order-btn-sm:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}
/* --- 激活页面 (activate.html) --- */
.ac-title { font-size: 24px; font-weight: bold; margin: 0 0 5px 0; }
.ac-subtitle { font-size: 14px; color: #888; margin-bottom: 30px; }
.ac-form-group { margin-bottom: 20px; }
.ac-form-group label { display: block; font-size: 14px; color: #555; margin-bottom: 8px; }
.ac-form-group select,
.ac-form-group input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-size: 16px; box-sizing: border-box; }
.ac-price { font-size: 20px; color: #e93b5a; font-weight: bold; margin-bottom: 30px; }
#acSubmitBtn { width: 100%; padding: 15px; font-size: 18px; }
/* --- 支付页面 (payment.html) --- */
.pm-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.pm-title { font-size: 24px; font-weight: bold; }
.pm-order-details { font-size: 14px; line-height: 1.8; margin-bottom: 25px; }
.pm-order-details p { margin: 5px 0; color: #555; }
.pm-order-details strong { color: #000; }
.pm-payment-area { display: flex; align-items: center; gap: 30px; }
.pm-qr-code { text-align: center; }
.pm-qr-code img { width: 180px; height: 180px; border: 1px solid #eee; }
.pm-qr-code p { font-size: 14px; color: #e93b5a; margin-top: 10px; font-weight: bold; }
.pm-payment-actions button, .pm-payment-actions a { display: block; width: 150px; padding: 12px; font-size: 16px; border-radius: 5px; cursor: pointer; margin-bottom: 15px; text-decoration: none; text-align: center; box-sizing: border-box; }
.pm-alipay-btn { background-color: #fff; color: #00a1e9; border: 1px solid #00a1e9; }
.pm-footer { margin-top: 30px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: #888; }
.pm-footer-icon { width: 20px; height: 20px; border-radius: 50%; background-color: #e93b5a; color: #fff; display: inline-flex; justify-content: center; align-items: center; font-size: 12px; transform: rotate(90deg); }
/* --- 激活页面 (activate.html) 验证样式 --- */
.ac-form-group input.error {
    border-color: #e93b5a !important; /* 强制覆盖原有边框色 */
}
.ac-phone-error-message {
    color: #e93b5a;
    font-size: 13px;
    margin-top: 5px;
    height: 15px; /* 预留空间防止布局跳动 */
}
/* --- 订单页面 (order.html) v2.0 样式 --- */
.order-details-card {
    background-color: #fff;
    padding: 40px 50px;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 900px;
}
.order-details-header {
    text-align: left;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 35px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}
.order-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 22px; /* 增加行间距 */
}
.order-details-item {
    display: flex;
    align-items: center;
    font-size: 15px;
}
.order-details-item .item-label {
    width: 130px;
    color: #888;
    flex-shrink: 0;
}
.order-details-item .item-value {
    color: #333;
    font-weight: 500;
}
.order-details-item .item-value.amount {
    color: #e93b5a;
    font-size: 18px;
    font-weight: bold;
}
.order-details-item .item-value.status-paid {
    color: #28a745;
    background-color: #e9f7ec;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 14px;
}
.order-actions {
    display: flex;
    gap: 15px;
}
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid;
    transition: all 0.3s ease;
}
.btn-action i {
    margin-right: 8px;
}
.btn-action.btn-download {
    background-color: #e93b5a;
    color: #fff;
    border-color: #e93b5a;
}
.btn-action.btn-download:hover {
    background-color: #d1304f;
    border-color: #d1304f;
}
.btn-action.btn-tutorial {
    background-color: #fff;
    color: #555;
    border-color: #ccc;
}
.btn-action.btn-tutorial:hover {
    background-color: #f5f5f5;
    border-color: #aaa;
}
.order-notice {
    margin-top: 40px;
    padding: 20px;
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.notice-icon {
    font-size: 20px;
    color: #faad14;
    padding-top: 3px;
}
.notice-content p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}
.notice-content p:last-child {
    margin-bottom: 0;
}
.notice-content a {
    color: #e93b5a;
    font-weight: bold;
    text-decoration: none;
}
.notice-content a:hover {
    text-decoration: underline;
}
/* 复用返回首页按钮的样式 */
.back-to-home {
    display: block;
    width: 150px;
    margin: 40px auto 0 auto;
}
/* --- 底部页脚 --- */
.site-footer {
    background-color: #2c3e50; /* 深蓝灰色背景，与网站整体风格协调 */
    color: #bdc3c7;      /* 柔和的浅灰色文字 */
    padding: 50px 60px;
    font-size: 14px;
    line-height: 1.7;
}
.footer-container {
    max-width: 1400px; /* [PC优化] 增大最大宽度 */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* 允许在小屏幕上换行 */
    gap: 20px;        /* 增加内容间的间距 */
}
.footer-links {
    display: flex;
    gap: 30px; /* 链接间距 */
}
.footer-links a {
    color: #ecf0f1; /* 更亮的链接颜色以突出 */
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: #e93b5a; /* 使用主题红色作为悬停颜色 */
    text-decoration: underline;
}
.footer-legal {
    text-align: right;
}
.footer-legal p {
    margin: 0 0 5px 0;
}
.footer-legal p:last-child {
    margin-bottom: 0;
}
/* [修正] 强制设定详情页顶部导航栏Logo文字颜色为白色 */
.top-nav .logo-container span {
    color: #fff;
}
/* [新增] 激活页标题图标样式 */
.ac-title-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    vertical-align: middle; /* 关键：使图标和文字垂直居中对齐 */
    border-radius: 4px;
}
/* --- [新增] Toast 通知样式 --- */
.toast-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, -120%); /* 初始位置在屏幕外 */
    padding: 12px 25px;
    border-radius: 25px;
    background-color: #333;
    color: white;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.toast-notification.show {
    transform: translate(-50%, 0);
}
.toast-notification.toast-success {
    background-color: #28a745;
}
.toast-notification.toast-error {
    background-color: #e93b5a;
}
/* --- [核心修正] 用于退出意图挽留的专属警告/促销样式 --- */
.toast-notification.toast-warning {
    background: linear-gradient(45deg, #ff9a44, #ff5f6d); /* 使用醒目的橙红色渐变 */
    color: white;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(255, 100, 120, 0.4);
}
.toast-notification.toast-warning::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f06d"; /* 火焰图标 */
    margin-right: 10px;
}
.top-nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.top-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background-color: rgba(233, 59, 90, 0.85); /* 半透明主题红 */
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.top-install-btn:hover {
    background-color: #e93b5a; /* 悬停时不透明 */
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
/* --- [新增] 订单查询/登录页面的容器样式 --- */
.login-container {
    background: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
}
.login-container h1 {
    text-align: center;
    color: #333;
    margin-top: 0;
    margin-bottom: 30px;
}
.login-container .form-group {
    margin-bottom: 20px;
}
.login-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}
.login-container input.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}
.login-container input.form-control:focus {
    border-color: #007bff;
    outline: none;
}
#captcha-container {
    margin-top: 10px;
    min-height: 40px;
    border-radius: 4px;
}
.login-container .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.login-container .btn:disabled {
    cursor: not-allowed;
}
/* [核心新增] 持久化挽留横幅样式 */
.persistent-banner {
    background: linear-gradient(45deg, #ffc107, #f76b1c); /* 醒目的橙黄色渐变 */
    color: #333; /* 深色文字保证可读性 */
    text-align: center;
    padding: 12px 15px;
    font-size: 15px;
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 1001; /* 比顶部导航栏更高 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.persistent-banner a {
    color: #e93b5a; /* 使用主题红色强调链接 */
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s;
    display: inline-block;
}

.persistent-banner a:hover {
    text-decoration: underline;
    transform: scale(1.05);
}

.persistent-banner i {
    color: #e93b5a;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}