/* common.css - 读我短网址公共样式 */

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f0f7ff;
    color: #333;
    line-height: 1.6;
}
/*首页logo*/
.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-blue);
    text-decoration: none;
}

.logo-img {
    height: 40px;          /* 可根据图片微调 */
    margin-right: 8px;
    display: block;
}

:root {
    --primary-blue: #0D6EFD;
    --light-blue: #E3F2FD;
    --dark-blue: #0D6EFD;
    --vip-gold: #ffc107;
    --success-green: #2e7d32;
    --danger-red: #c62828;
    --gray-light: #e8eaf6;
    --gray: #757575;
    --gray-dark: #37474f;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(13, 110, 253, 0.15);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-blue);
    text-decoration: none;
}

.logo i {
    margin-right: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    transition: all 0.3s;
    font-size: 18px;
    padding: 8px 15px;
    border-radius: 6px;
    display: block;
}

.nav-menu a:hover,
.nav-menu .active-price,
.nav-menu .price-link {
    color: var(--primary-blue);
    background-color: var(--light-blue);
}

.nav-auth {
    display: flex;
    gap: 15px;
}

/* 登录和注册按钮 */
.auth-btn {
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    font-size: 16px;
}

.login-btn {
    background-color: white;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.login-btn:hover {
    background-color: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

.register-btn {
    background-color: var(--primary-blue);
    color: white;
}

.register-btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.dashboard-btn {
    background-color: var(--success-green);
    color: white;
}

.logout-btn {
    background-color: var(--gray-light);
    color: var(--gray-dark);
}

/* 主要内容区域 */
.main-content {
    padding-top: 100px;
}

/* 弹窗样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background-color: white;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--gray-light);
    position: relative;
}

.modal-title {
    font-size: 24px;
    color: var(--dark-blue);
    text-align: center;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.modal-close:hover {
    background-color: var(--gray-light);
}

.modal-body {
    padding: 30px;
}

/* 登录弹窗 */
.login-modal-content {
    display: flex;
    min-height: 400px;
}

/* 左侧微信二维码登录 */
.qrcode-login-area {
    flex: 1;
    background: linear-gradient(135deg, var(--light-blue), #BBDEFB);
    padding: 40px;
    color: var(--dark-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.qrcode-login-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.qrcode-login-desc {
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.qrcode-container {
    text-align: center;
    padding: 10px 0;
}

.qrcode-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 10px;
    margin: 0 auto 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--gray);
    overflow: hidden;
    border: 1px solid var(--gray-light);
    background-color: white;
}

.qrcode-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.countdown {
    font-size: 16px;
    color: var(--danger-red);
    font-weight: 600;
    margin: 15px 0;
}

.qrcode-instruction {
    font-size: 14px;
    color: var(--gray-dark);
}

/* 右侧表单区域 */
.login-form-area {
    flex: 1;
    padding: 40px;
}

.login-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--gray-light);
}

.login-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    color: var(--gray-dark);
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.login-tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.register-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-dark);
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 16px;
}

.form-input:focus {
    border-color: var(--primary-blue);
    outline: none;
}

/* 验证码样式 */
.captcha-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-input {
    flex: 1;
}

.captcha-img {
    width: 100px;
    height: 40px;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background-color: #f5f5f5;
    cursor: pointer;
    user-select: none;
}

.captcha-refresh {
    background: none;
    border: none;
    color: var(--primary-blue);
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
}

/* 确认弹窗 */
.confirm-modal {
    max-width: 500px;
}

.confirm-body {
    text-align: center;
    padding: 40px;
}

.confirm-icon {
    font-size: 60px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.confirm-text {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--gray-dark);
    line-height: 1.6;
}

.confirm-buttons {
    display: flex;
    gap: 20px;
}

.confirm-btn {
    flex: 1;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.cancel-btn {
    background-color: var(--gray-light);
    color: var(--gray-dark);
}

.login-confirm-btn {
    background-color: var(--primary-blue);
    color: white;
}

/* VIP提示弹窗 */
.vip-modal {
    max-width: 400px;
}

.vip-body {
    text-align: center;
    padding: 40px;
}

.vip-icon {
    font-size: 60px;
    color: var(--vip-gold);
    margin-bottom: 20px;
}

.vip-text {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--dark-blue);
    font-weight: 500;
}

/* 支付弹窗 */
.payment-modal {
    max-width: 500px;
}

.payment-info {
    text-align: center;
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--gray-dark);
}

.payment-options {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.payment-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.wechat-btn {
    background-color: #4CAF50;
    color: white;
}

.wechat-btn:hover {
    background-color: #3d8b40;
    transform: translateY(-2px);
}

.alipay-btn {
    background-color: #1677FF;
    color: white;
}

.alipay-btn:hover {
    background-color: #0d5cd9;
    transform: translateY(-2px);
}

/* 页脚 */
.footer {
    background-color: var(--dark-blue);
    color: white;
    padding: 50px 0 25px;
    text-align: center;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.footer-line {
    font-size: 16px;
    line-height: 1.8;
}

.copyright {
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .login-modal-content {
        flex-direction: column;
    }
    .payment-options {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .qrcode-placeholder {
        width: 150px;
        height: 150px;
    }
    .login-form-area {
        padding: 30px 20px;
    }
}