/**
 * 中国能源周报名系统 - 深色科技感风格
 * 设计基调：深色背景 + 金色点缀 + 毛玻璃效果 + 大圆角
 */

/* ========== 全局重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #050b17;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

/* ========== 头部导航 ========== */
.header {
    background: rgba(12, 22, 35, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(105deg, #ffd966 0%, #ffb347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    text-align: center;
    color: #b9cfec;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.nav-tabs {
    display: flex;
    justify-content: space-around;
    gap: 0.5rem;
    margin-top: 1rem;
}

.nav-tab {
    flex: 1;
    text-align: center;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 1rem;
    color: #ffd966;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-tab.active,
.nav-tab:hover {
    background: linear-gradient(105deg, rgba(255, 217, 102, 0.2) 0%, rgba(255, 179, 71, 0.2) 100%);
    border-color: #ffd966;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 217, 102, 0.3);
}

/* ========== 卡片组件 ========== */
.card {
    background: rgba(12, 22, 35, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffd966;
}

.card-title i {
    font-size: 1.2rem;
}

/* ========== 表单元素 ========== */
.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffdfa5;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 1rem;
    color: #ffffff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #ffd966;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 15px rgba(255, 217, 102, 0.3);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.required {
    color: #ff9966;
    margin-left: 0.3rem;
}

/* ========== 单选框和复选框 ========== */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.radio-item,
.checkbox-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 0.8rem;
}

.radio-item:hover,
.checkbox-item:hover {
    border-color: rgba(255, 215, 0, 0.6);
    background: rgba(255, 217, 102, 0.05);
    transform: translateX(5px);
}

.radio-item.selected,
.checkbox-item.selected {
    border-color: #ffd966;
    background: rgba(255, 217, 102, 0.1);
    box-shadow: 0 0 20px rgba(255, 217, 102, 0.2);
}

.radio-item input[type="radio"],
.checkbox-item input[type="checkbox"] {
    margin-top: 0.3rem;
    transform: scale(1.1);
    accent-color: #ffd966;
}

.forum-info {
    flex: 1;
}

.forum-name {
    font-weight: 600;
    color: #ffd966;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.forum-desc {
    font-size: 0.75rem;
    color: #b9cfec;
    margin-bottom: 0.5rem;
}

.forum-price {
    color: #ffd966;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ========== 按钮样式 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(105deg, #ffd966 0%, #ffb347 100%);
    color: #050b17;
    box-shadow: 0 10px 20px rgba(255, 217, 102, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 217, 102, 0.5);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffd966;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 217, 102, 0.1);
    border-color: #ffd966;
}

.btn-success {
    background: linear-gradient(105deg, #5cb85c 0%, #4cae4c 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(105deg, #f0ad4e 0%, #ec971f 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(105deg, #ff9966 0%, #ff6633 100%);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    width: auto;
}

/* ========== 价格汇总栏 ========== */
.price-summary {
    background: linear-gradient(135deg, rgba(12, 22, 35, 0.95) 0%, rgba(5, 11, 23, 0.98) 100%);
    padding: 1.5rem;
    border-radius: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: #b9cfec;
}

.price-row.total {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffd966;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(255, 215, 0, 0.4);
}

.discount-badge {
    background: rgba(255, 217, 102, 0.2);
    color: #ffd966;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

/* ========== 提示信息 ========== */
.alert {
    padding: 1rem 1.2rem;
    border-radius: 1rem;
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
    border-left: 4px solid;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    border-left-color: #17a2b8;
    color: #b9cfec;
}

.alert-success {
    background: rgba(92, 184, 92, 0.1);
    border-left-color: #5cb85c;
    color: #5cb85c;
}

.alert-warning {
    background: rgba(240, 173, 78, 0.1);
    border-left-color: #f0ad4e;
    color: #f0ad4e;
}

.alert-danger {
    background: rgba(255, 153, 102, 0.1);
    border-left-color: #ff9966;
    color: #ff9966;
}

/* ========== 订单列表 ========== */
.order-list {
    list-style: none;
}

.order-item {
    background: rgba(12, 22, 35, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-left: 4px solid #ffd966;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.order-id {
    font-size: 0.8rem;
    color: #b9cfec;
    font-family: monospace;
}

.order-status {
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending_payment {
    background: rgba(240, 173, 78, 0.2);
    color: #f0ad4e;
    border: 1px solid rgba(240, 173, 78, 0.4);
}

.status-wait_verify {
    background: rgba(255, 153, 102, 0.2);
    color: #ff9966;
    border: 1px solid rgba(255, 153, 102, 0.4);
}

.status-active {
    background: rgba(92, 184, 92, 0.2);
    color: #5cb85c;
    border: 1px solid rgba(92, 184, 92, 0.4);
}

.status-cancelled {
    background: rgba(255, 102, 102, 0.2);
    color: #ff6666;
    border: 1px solid rgba(255, 102, 102, 0.4);
}

.order-detail {
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    color: #b9cfec;
}

.order-detail-label {
    color: #ffdfa5;
    margin-right: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* ========== 二维码区域 ========== */
.qrcode-section {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 1rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.qrcode-section h4 {
    color: #ffd966;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.qrcode-section img {
    max-width: 200px;
    height: auto;
    border-radius: 0.5rem;
    border: 3px solid rgba(255, 215, 0, 0.4);
    padding: 0.5rem;
    background: white;
}

/* ========== 表格样式 ========== */
.table-responsive {
    overflow-x: auto;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(12, 22, 35, 0.5);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.table th {
    background: rgba(0, 0, 0, 0.6);
    font-weight: 600;
    color: #ffd966;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    font-size: 0.85rem;
    color: #b9cfec;
}

.table tr:hover {
    background: rgba(255, 217, 102, 0.05);
}

/* ========== 随行人员卡片 ========== */
.attendee-item {
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    padding: 1.2rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid #ffd966;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.remove-attendee {
    position: absolute;
    right: 0.8rem;
    top: 0.8rem;
    color: #ff9966;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.remove-attendee:hover {
    color: #ff6633;
    transform: scale(1.2);
}

.add-attendee-btn {
    background: rgba(255, 217, 102, 0.1);
    border: 2px dashed rgba(255, 215, 0, 0.4);
    color: #ffd966;
    padding: 1rem;
    text-align: center;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    font-weight: 500;
}

.add-attendee-btn:hover {
    background: rgba(255, 217, 102, 0.15);
    border-color: #ffd966;
    transform: translateY(-2px);
}

/* ========== 模态框 ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 11, 23, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(12, 22, 35, 0.95);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 1.5rem;
    max-width: 500px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffd966;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 0.8rem;
}

.close {
    float: right;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    color: #b9cfec;
    transition: all 0.3s ease;
}

.close:hover {
    color: #ffd966;
    transform: scale(1.2);
}

/* ========== 加载动画 ========== */
.loading {
    text-align: center;
    padding: 3rem;
}

.spinner {
    border: 4px solid rgba(255, 217, 102, 0.1);
    border-top: 4px solid #ffd966;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    color: #b9cfec;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
    color: #ffd966;
}

.empty-state-text {
    font-size: 1.1rem;
}

/* ========== 工具类 ========== */
.text-center {
    text-align: center;
}

.text-gold {
    color: #ffd966;
}

.hidden {
    display: none;
}

.mt-2 {
    margin-top: 1rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

/* ========== 响应式调整 ========== */
@media (max-width: 768px) {
    .container {
        padding: 0.8rem;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .card {
        padding: 1.2rem;
    }
    
    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .price-row.total {
        font-size: 1.5rem;
    }
}

/* ========== 首页特殊样式 ========== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(5, 11, 23, 0.9) 0%, rgba(12, 22, 35, 0.85) 100%),
                url('../images/ccxxxxxxxxxxxxx.jpg') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(105deg, #ffd966 0%, #ffb347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #b9cfec;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 3rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-btn-primary {
    background: linear-gradient(105deg, #ffd966 0%, #ffb347 100%);
    color: #050b17;
    box-shadow: 0 10px 30px rgba(255, 217, 102, 0.4);
}

.hero-btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 217, 102, 0.6);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffd966;
    border: 2px solid rgba(255, 215, 0, 0.6);
    backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
    background: rgba(255, 217, 102, 0.15);
    border-color: #ffd966;
    transform: translateY(-5px);
}

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

/* ========== 表单验证错误样式 ========== */
.form-control.error {
    border-color: #ff9966;
    background: rgba(255, 153, 102, 0.1);
}

.error-message {
    color: #ff9966;
    font-size: 0.75rem;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
