* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary: #07c160;
    --primary-dark: #06ad56;
    --secondary: #3385ff;
    --accent: #ff6b6b;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    background-color: #f5f7fa;
    line-height: 1.6;
    color: var(--dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, var(--primary) 0%, #1e9c5a 100%);
    color: white;
    padding: 25px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-content {
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 20px;
}

.header-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

/* 主要部分样式 */
main {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--dark);
    position: relative;
    overflow: hidden;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: titleShimmer 3s infinite;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 10px auto 0;
    border-radius: 2px;
}

.highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 50px;
}

.highlight-card {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.highlight-icon {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.highlight-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark);
}

/* 服务网格样式 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

/* 呼吸动画 */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 15px 35px rgba(7, 193, 96, 0.15);
    }
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.service-card.animate {
    opacity: 1;
    transform: translateY(0);
    animation: breathe 3s ease-in-out infinite;
}

.service-card:nth-child(1) { 
    transition-delay: 0.1s; 
    animation-delay: 0s;
}
.service-card:nth-child(2) { 
    transition-delay: 0.2s; 
    animation-delay: 1s;
}
.service-card:nth-child(3) { 
    transition-delay: 0.3s; 
    animation-delay: 2s;
}

.service-card:hover {
    animation-play-state: paused;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.service-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(7, 193, 96, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary);
    font-size: 1.5rem;
}

.service-card h4 {
    font-size: 1.3rem;
    color: var(--dark);
}

.service-list {
    list-style-type: none;
}

.service-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--light-gray);
    display: flex;
    align-items: center;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 0.9rem;
}

/* 表单区域样式 */
.form-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto 40px;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-title {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.form-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: titleShimmer 3s infinite;
}

@keyframes titleShimmer {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 150%;
    }
}

.form-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.required:after {
    content: " *";
    color: var(--accent);
}

input, textarea, select {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    cursor: text;
    z-index: 1;
    position: relative;
    background: white;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.2);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

/* ========== 新建地区选择弹窗样式 ========== */
.region-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.region-modal.active {
    display: flex;
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.region-modal-content {
    background-color: #ffffff;
    border-radius: 16px;
    width: 92%;
    max-width: 500px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.region-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #007bff 0%, #00a8ff 100%);
    color: white;
}

.region-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.region-modal-close {
    font-size: 1.4rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s;
    padding: 5px;
    border-radius: 50%;
}

.region-modal-close:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

.region-modal-body {
    padding: 0;
}

.region-two-columns {
    display: flex;
    height: 450px;
    width: 100%;
}

.region-left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e9ecef;
    background-color: #fafbfc;
    height: 100%;
    min-width: 120px;
}

.region-right-column {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    height: 100%;
    min-width: 180px;
}

.column-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #e9ecef;
    min-height: 225px;
    background-color: #fff;
}

.column-options {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    background-color: #fff;
    min-height: 180px;
}

#cityOptions {
    background-color: #e8f4e8 !important;
}

#districtOptions {
    background-color: #f8e8e8 !important;
}

.column-group:last-child {
    border-bottom: none;
}

.column-title {
    padding: 14px 12px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    font-size: 15px;
    font-weight: 600;
    color: #495057;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
    flex-shrink: 0;
    position: relative;
}

.back-btn {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #007bff;
    font-weight: bold;
}

.back-btn:hover {
    color: #0056b3;
}

.region-left-column.hide {
    display: none;
}

.region-right-column.full {
    flex: 1;
}

.region-right-column.single {
    flex: 1.2;
}

.region-right-column.single .column-group {
    flex: 1;
    border-bottom: none;
    min-height: 100%;
}

.column-option {
    padding: 14px 16px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.column-option:hover {
    background-color: #e3f2fd;
    color: #007bff;
    padding-left: 16px;
}

.column-option.selected {
    background-color: #007bff;
    color: white;
    font-weight: 500;
}

.column-option.selected:hover {
    background-color: #0069d9;
    color: white;
}

.column-options::-webkit-scrollbar {
    width: 4px;
}

.column-options::-webkit-scrollbar-track {
    background: transparent;
}

.column-options::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 2px;
}

.column-options::-webkit-scrollbar-thumb:hover {
    background-color: #999;
}

.region-option.selected {
    background-color: var(--primary);
    color: white;
}

#regionDisplay {
    width: calc(100% - 100px);
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f8f9fa;
    color: var(--dark);
}

.btn-select-region {
    width: 90px;
    padding: 12px 10px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.region-select-container {
    display: flex;
    gap: 10px;
}

.region-select-container input {
    flex: 1;
}

.btn-select-region:hover {
    background-color: var(--primary-dark);
}

.checkbox-group input {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    margin-top: 3px;
    cursor: pointer;
    animation: breathe 2s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(64, 158, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 6px rgba(64, 158, 255, 0);
    }
}

.checkbox-group label {
    font-weight: normal;
    line-height: 1.5;
}

.btn-submit {
    display: block;
    width: 80%;
    margin: 0 auto;
    padding: 16px;
    background: linear-gradient(135deg, #00ffcc 0%, #00d4ff 50%, #0099ff 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 
        0 0 20px rgba(0, 168, 255, 0.6), 
        0 0 40px rgba(0, 255, 204, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn-submit::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(255, 255, 255, 0.1) 60deg,
        transparent 120deg,
        transparent 180deg,
        rgba(255, 255, 255, 0.1) 240deg,
        transparent 300deg,
        transparent 360deg
    );
    animation: rotate 4s linear infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(135deg, #00ffcc 0%, #00d4ff 50%, #0099ff 100%);
    }
    50% {
        background: linear-gradient(135deg, #0099ff 0%, #00d4ff 50%, #00ffcc 100%);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.btn-submit:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 
        0 0 30px rgba(0, 168, 255, 0.9), 
        0 0 60px rgba(0, 255, 204, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:active {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 0 15px rgba(0, 168, 255, 0.6), 
        0 0 30px rgba(0, 255, 204, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-submit i {
    margin-right: 8px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.guarantee {
    background: rgba(7, 193, 96, 0.08);
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
    border-left: 5px solid var(--primary);
}

/* 页脚样式 */
footer {
    background: var(--dark);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.counter {
    font-size: 1.1rem;
    color: var(--light);
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.counter span {
    color: var(--accent);
    font-weight: bold;
}

.disclaimer {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 20px;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    * {
        -webkit-text-size-adjust: 100%;
    }
    h1 {
        font-size: 1.8rem;
        padding: 0 10px;
    }
    .subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }
    .badge {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
    .header-content {
        padding: 0 10px;
    }
    .container {
        padding: 0 15px;
    }
    .form-container {
        padding: 20px 15px;
        margin: 0 10px 30px;
        border-radius: 10px;
    }
    .form-title {
        font-size: 1.4rem;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .location-select {
        flex-direction: column;
        gap: 10px;
    }
    .location-select select {
        font-size: 14px;
    }
    .region-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    .region-two-columns {
        flex-direction: row;
        height: 400px;
        gap: 0;
    }
    .region-left-column {
        flex: 1;
        height: 100%;
        border-right: 1px solid #e9ecef;
    }
    .region-right-column {
        flex: 1.2;
        height: 100%;
        min-width: 100px;
    }
    .column-group {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 200px;
    }
    .column-title {
        font-size: 13px;
        padding: 10px 8px;
        flex-shrink: 0;
    }
    .column-option {
        font-size: 14px;
        padding: 12px 12px;
    }
    #regionDisplay {
        width: calc(100% - 90px);
        font-size: 14px;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .highlights {
        gap: 15px;
    }
    .highlight-card {
        min-width: 100%;
        padding: 20px 15px;
    }
    .highlight-icon {
        font-size: 2rem;
    }
    .highlight-card h3 {
        font-size: 1.2rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .service-card {
        padding: 20px 15px;
    }
    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .service-card h4 {
        font-size: 1.1rem;
    }
    .service-list li {
        padding: 6px 0;
        font-size: 0.9rem;
    }
    input, textarea, select {
        padding: 12px;
        font-size: 16px;
    }
    .btn-submit {
        padding: 15px;
        font-size: 1.1rem;
    }
    .guarantee {
        padding: 15px;
    }
    .counter {
        font-size: 1rem;
        padding: 8px;
    }
    footer {
        padding: 20px 0;
    }
    .footer-content {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    .subtitle {
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .form-container {
        padding: 15px 12px;
        margin: 0 5px 25px;
    }
}

/* 成功消息样式 */
.success-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
}
.success-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
}
.success-message h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--dark);
}

/* 虚拟提交记录窗口 */
.recent-submissions {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.submission-header {
    background: linear-gradient(135deg, var(--primary) 0%, #1e9c5a 100%);
    color: white;
    padding: 12px 15px;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    z-index: 10;
}

.submission-list {
    padding: 0;
    height: 180px;
    overflow: hidden;
    position: relative;
    margin-top: 0;
    padding-bottom: 0;
}

.submission-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 1;
}

.submission-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.65rem;
    margin-right: 10px;
    flex-shrink: 0;
}

.submission-content {
    flex: 1;
    line-height: 1.4;
}

.submission-name {
    font-weight: 600;
    margin-right: 5px;
}

.submission-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-left: auto;
    white-space: nowrap;
}
