:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #4facfe;
    --warning-color: #43e97b;
    --danger-color: #fa709a;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 1px;
}

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

.main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-top: 0.5rem;
}

.column {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.column-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
    text-align: center;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
  
    background-clip: text;
}

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.header {
    text-align: center;
    margin-bottom: 1px;
    color: white;
}

.header h1 {
    font-size: 1.6rem;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.section-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 进度提示区域样式 */
.parse-progress-container {
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-header {
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.progress-text {
    min-height: 420px;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.4;
    color: white;
    font-family: 'Microsoft YaHei', sans-serif;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.progress-line {
    padding: 5px 0;
}

.progress-line:last-child {
    border-bottom: none;
}

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

.form-label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 20px rgba(240, 147, 251, 0.3);
}

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

.form-input::placeholder, .form-textarea::placeholder {
    color: rgba(255,255,255,0.6);
}

.form-select option {
    background: #2c3e50;
    color: white;
    padding: 8px 12px;
}

.form-select option:hover {
    background: #34495e;
    color: white;
}

.form-select option:checked,
.form-select option:selected {
    background: var(--primary-color);
    color: white;
}

/* 确保所有浏览器中select选项的可见性 */
.form-select,
.inline-select {
    color: white !important;
    background: rgba(255,255,255,0.1) !important;
}

.form-select:focus,
.inline-select:focus {
    color: white !important;
    background: rgba(255,255,255,0.15) !important;
}

/* 强制设置select选项样式，解决白底白字问题 */
.form-select option,
.inline-select option {
    background-color: #34495e !important;
    color: #ffffff !important;
    padding: 8px 12px !important;
}

.form-select option:hover,
.inline-select option:hover {
    background-color: #2c3e50 !important;
    color: #ffffff !important;
}

.form-select option:checked,
.form-select option:selected,
.inline-select option:checked,
.inline-select option:selected {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

/* 针对WebKit浏览器的特殊处理 */
.form-select::-webkit-scrollbar,
.inline-select::-webkit-scrollbar {
    width: 8px;
}

.form-select::-webkit-scrollbar-track,
.inline-select::-webkit-scrollbar-track {
    background: #2c3e50;
}

.form-select::-webkit-scrollbar-thumb,
.inline-select::-webkit-scrollbar-thumb {
    background: #34495e;
    border-radius: 4px;
}

/* 内联字段样式 */
.inline-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 景点容器样式 */
.attractions-container {
    margin-top: 8px;
}

.attractions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
}

.attraction-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(240, 147, 251, 0.3);
    transition: all 0.3s ease;
}

.attraction-tag:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.5);
}

.attraction-remove {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    padding: 0;
    margin-left: 0.25rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.hotel-add {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    padding: 0;
    margin-right: 0.25rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.2);
}

.hotel-add:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}
.attraction-remove:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.attractions-list:empty::before {
    content: "暂无景点，请添加";
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.field-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    min-width: fit-content;
}

.inline-input,
.inline-select {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 0;
}

.inline-input:focus,
.inline-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.inline-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(45deg, var(--success-color), var(--warning-color));
    color: white;
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 172, 254, 0.4);
}

.btn-warning {
    background: linear-gradient(45deg, #ffecd2, #fcb69f);
    color: #333;
}

.btn-warning:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(252, 182, 159, 0.4);
}

.btn-info {
    background: linear-gradient(45deg, #a8edea, #fed6e3);
    color: #333;
}

.btn-info:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(168, 237, 234, 0.4);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 默认两列 */
    gap: 15px;
}

.form-row-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 四列布局 */
    gap: 15px;
}

@media (max-width: 768px) {
    .form-row,
    .form-row-4 {
        grid-template-columns: 1fr; /* 移动端单列 */
    }
}

.cost-item {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.2);
}

.cost-item-header {
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cost-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.detail-input {
    width: 80px;
    padding: 5px 8px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.9rem;
    text-align: right;
}

.detail-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255,255,255,0.15);
}

.cost-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.cost-header:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.cost-header .cost-label {
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cost-header .cost-input {
    width: 100px;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: white;
    text-align: right;
    font-weight: bold;
}

.cost-details {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 15px;
    margin-top: 5px;
    animation: slideDown 0.3s ease;
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 300px;
    }
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
    color: white;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item span {
    font-size: 0.9rem;
}

.total-display {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    margin: 20px 0;
    border: 2px solid rgba(255,255,255,0.3);
}

.total-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.per-person {
    font-size: 1.2rem;
    color: white;
    opacity: 0.9;
}

.quote-section {
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}

.quote-text {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 20px;
    color: white;
    font-family: 'Courier New', monospace;
    white-space: pre-line;
    line-height: 1.6;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.2);
}

.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

/* 悬浮提示样式 */
.floating-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    padding: 20px 25px;
    border-radius: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: floatingAlertIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-alert.fade-out {
    animation: floatingAlertOut 0.3s ease-in-out forwards;
}

.floating-alert-success {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.9), rgba(79, 172, 254, 0.9));
    color: white;
    border-color: rgba(67, 233, 123, 0.5);
}

.floating-alert-info {
    background: linear-gradient(135deg, rgba(168, 237, 234, 0.9), rgba(254, 214, 227, 0.9));
    color: white;
    border-color: rgba(168, 237, 234, 0.5);
}

.floating-alert-warning {
    background: linear-gradient(135deg, rgba(255, 236, 210, 0.9), rgba(252, 182, 159, 0.9));
    color: #333;
    border-color: rgba(252, 182, 159, 0.5);
}

.floating-alert-error {
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.9), rgba(254, 118, 135, 0.9));
    color: white;
    border-color: rgba(250, 112, 154, 0.5);
}

@keyframes floatingAlertIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
}

@keyframes floatingAlertOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9) translateY(-20px);
    }
}

.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: linear-gradient(45deg, rgba(67, 233, 123, 0.2), rgba(79, 172, 254, 0.2));
    color: white;
    border: 1px solid rgba(67, 233, 123, 0.3);
}

.alert-info {
    background: linear-gradient(45deg, rgba(168, 237, 234, 0.2), rgba(254, 214, 227, 0.2));
    color: white;
    border: 1px solid rgba(168, 237, 234, 0.3);
}

.alert-warning {
    background: linear-gradient(45deg, rgba(255, 236, 210, 0.2), rgba(252, 182, 159, 0.2));
    color: white;
    border: 1px solid rgba(252, 182, 159, 0.3);
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* 悬浮提示样式 - 统一版本 */
.floating-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 20px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
    animation: floatingAlertIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-alert-success {
    border-color: rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    color: #ffffff;
}

.floating-alert-warning {
    border-color: rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    color: #d97706;
}

.floating-alert-error {
    border-color: rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    color: #dc2626;
}

.floating-alert-info {
    border-color: rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    color: #e6e6e6;
}

.floating-alert.fade-out {
    animation: floatingAlertOut 0.3s ease-in-out forwards;
}

@keyframes floatingAlertIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
}

@keyframes floatingAlertOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9) translateY(-20px);
    }
}

/* 媒体查询 - 响应式设计 */
@media (max-width: 768px) {
    * {
        box-sizing: border-box;
    }
    
    body {
        padding: 10px !important;
        margin: 0 !important;
        overflow-x: hidden;
    }
    
    .container {
        flex-direction: column;
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .main-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
    }
    
    .column {
        width: 100% !important;
        margin: 0 0 1rem 0 !important;
        box-sizing: border-box !important;
    }
    
    .glass-card {
        padding: 15px;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .cost-item {
        padding: 10px;
    }
    
    .total-display {
        padding: 15px;
    }
    
    .quote-section {
        padding: 15px;
    }
    
    .floating-alert {
        min-width: 280px;
        max-width: 90vw;
        padding: 16px 24px;
        font-size: 0.9rem;
    }
}

/* 使用说明样式 */
.usage-instructions {
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.usage-instructions h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.usage-instructions ol {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    padding-left: 20px;
}

.usage-instructions li {
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.usage-instructions li:hover {
    color: white;
}

/* 版权信息样式 */
.copyright-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.copyright-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.copyright-footer a:hover {
    color: white;
    text-decoration: underline;
}

/* 复选框样式 */
.checkbox-group {
    flex: 1;
    margin: 1px 0;
    padding: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    color: var(--accent-color);
}

.checkbox-input {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    margin-right: 10px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.checkbox-text {
    font-size: 1rem;
    user-select: none;
}