/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    padding-bottom: 60px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* 顶部电话栏 */
.top-bar {
    background: #fff;
    padding: 8px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.phone-input {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f8f8f8;
    border-radius: 5px;
    padding: 8px 12px;
    margin-right: 10px;
}

.phone-input input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
}

.submit-btn {
    background: #ff3333;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

/* 主标题区域 */
.hero-section {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff3333 100%);
    color: white;
    padding: 20px 15px;
    text-align: center;
}

.hero-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 16px;
    opacity: 0.95;
}

.hot-tag {
    display: inline-block;
    background: #ffeb3b;
    color: #ff3333;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 5px;
    animation: pulse 2s infinite;
}

/* 产品卡片 */
.product-card {
    background: white;
    margin: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.product-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-subtitle {
    font-size: 14px;
    color: #666;
}

.highlight {
    color: #ff3333;
}

/* 高亮框 */
.highlight-box {
    padding: 15px;
    background: #fffbf0;
    text-align: center;
}

.highlight-badge {
    background: #ff3333;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

.highlight-text {
    color: #666;
    font-size: 14px;
}

/* 优惠框 */
.offer-box {
    background: #fff3e0;
    padding: 20px 15px;
    text-align: center;
    position: relative;
}

.offer-title {
    font-size: 20px;
    color: #ff9800;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.3;
}

.offer-subtitle {
    font-size: 16px;
    color: #666;
}

.offer-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff3333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    animation: pulse 2s infinite;
}

/* 行动区域 */
.action-section {
    padding: 15px;
}

.price-display {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
}

.price-value {
    font-size: 32px;
    color: #ff3333;
    font-weight: bold;
}

.price-unit {
    font-size: 16px;
    margin-left: 5px;
}

.price-date {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

.cta-button {
    width: 100%;
    background: #ff3333;
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

/* 产品图片 */
.product-images {
    display: flex;
    padding: 15px;
    gap: 10px;
}

.product-image {
    flex: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #f0f0f0;
}

.product-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* 按钮组 */
.action-buttons {
    display: flex;
    padding: 15px;
    gap: 10px;
}

.btn-primary {
    flex: 1;
    background: #ff3333;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.btn-secondary {
    flex: 1;
    background: #333;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

/* 章节标题 */
.section-title {
    text-align: center;
    padding: 15px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

/* 理由列表 */
.reason-list {
    padding: 15px;
}

.reason-item {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.reason-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.reason-check {
    background: #ff3333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 10px;
}

.reason-title {
    font-size: 16px;
    font-weight: bold;
}

.reason-content {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.reason-content p {
    margin-bottom: 8px;
}

/* 报价区域 */
.quote-section {
    background: white;
    margin: 15px;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.quote-header {
    text-align: center;
    margin-bottom: 20px;
}

.quote-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.quote-subtitle {
    font-size: 14px;
    color: #ff3333;
}

/* 快速表单 */
.quick-form {
    margin-bottom: 20px;
}

.quick-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 10px;
}

.form-submit-btn {
    width: 100%;
    background: #ff3333;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

/* 最近报价 */
.recent-quotes {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.quote-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8f8f8;
    font-size: 14px;
}

.quote-item .location {
    color: #666;
    margin-right: 10px;
}

.quote-item .time {
    color: #999;
    margin-right: 10px;
}

.quote-item .phone {
    color: #ff3333;
    margin-right: 10px;
}

.quote-item .product {
    color: #333;
    flex: 1;
}

/* 产品类型 */
.product-types {
    background: white;
    margin: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.types-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.types-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.types-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.tab {
    padding: 6px 12px;
    background: #f8f8f8;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
}

.tab.active {
    background: #ff3333;
    color: white;
}

.types-content {
    padding: 15px;
}

.type-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.type-info {
    background: #f8f8f8;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.type-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.type-value {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

.type-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.feature-item {
    text-align: center;
}

.feature-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.feature-value {
    display: block;
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

.consult-btn {
    width: 100%;
    background: #ff3333;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

/* 底部悬浮栏 */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    padding: 8px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.bottom-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    margin: 0 4px;
}

.bottom-btn-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.bottom-btn-text {
    font-size: 12px;
    color: #666;
}

.bottom-btn.call {
    background: #4CAF50;
    color: white;
}

.bottom-btn.consult {
    background: #ff9800;
    color: white;
}

.bottom-btn.quote {
    background: #2196F3;
    color: white;
}

.bottom-btn.call .bottom-btn-text,
.bottom-btn.consult .bottom-btn-text,
.bottom-btn.quote .bottom-btn-text {
    color: white;
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    padding: 16px;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    width: min(510px, 94vw);
    max-height: calc(100vh - 64px);
    border-radius: 14px;
    padding: 18px 20px;
    position: relative;
    overflow-y: auto;
    margin: 0 auto;
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.modal-close {
    position: absolute;
    right: -10px;
    top: -10px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.form-input:focus {
    outline: none;
    border-color: #ff3333;
}

.form-submit {
    width: 100%;
    background: #ff3333;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

/* 动画 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* 响应式 */
@media (max-width: 375px) {
    .hero-title {
        font-size: 20px;
    }
    
    .product-title {
        font-size: 16px;
    }
    
    .offer-title {
        font-size: 20px;
    }
}
