* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

h1 {
    text-align: center;
    color: #667eea;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 700;
}

h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

h3 {
    color: #764ba2;
    margin: 20px 0 10px 0;
    font-size: 1.2em;
}

.section {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.95em;
}

.form-group input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.holiday-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.holiday-form .form-group {
    flex: 1;
    min-width: 200px;
}

button {
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    height: fit-content;
}

button:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

.calculate-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    margin-top: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.calculate-btn:hover {
    background: linear-gradient(135deg, #5568d3 0%, #654691 100%);
}

.holiday-list {
    margin-top: 20px;
}

.holiday-list ul {
    list-style: none;
}

.holiday-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.holiday-item span {
    color: #555;
    font-weight: 500;
}

.holiday-item button {
    padding: 6px 12px;
    background: #e74c3c;
    font-size: 0.9em;
}

.holiday-item button:hover {
    background: #c0392b;
}

.result-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.result-section h2 {
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.result-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    color: #333;
}

.result-summary {
    text-align: center;
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-weight: 500;
    line-height: 1.6;
}

.price-main {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    margin-bottom: 25px;
    color: white;
}

.price-main .currency-label {
    display: block;
    font-size: 1.1em;
    margin-bottom: 10px;
    opacity: 0.9;
}

.price-main .price-value {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
}

.price-conversions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.price-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e0e0e0;
}

.price-item .currency-label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.price-item .price-value {
    display: block;
    font-size: 1.5em;
    font-weight: 700;
    color: #667eea;
}

.exchange-rate-info {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    color: #666;
}

.exchange-rate-info small {
    font-size: 0.85em;
}

/* 标签页样式 */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

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

/* 门票表单样式 */
.ticket-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.ticket-form .form-group {
    flex: 1;
    min-width: 200px;
}

.ticket-list {
    margin-top: 20px;
}

.ticket-list ul {
    list-style: none;
}

.ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ticket-item span {
    color: #555;
    font-weight: 500;
}

.ticket-item .ticket-info {
    flex: 1;
}

.ticket-item .ticket-name {
    font-weight: 600;
    margin-right: 10px;
}

.ticket-item .ticket-price {
    color: #667eea;
}

/* 门票选择区域 */
.ticket-selection-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.ticket-selection-section h3 {
    color: #764ba2;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.ticket-selection-section h4 {
    color: #764ba2;
    margin: 15px 0 10px 0;
    font-size: 1em;
}

.selected-tickets-list {
    margin-top: 15px;
}

.selected-tickets-list ul {
    list-style: none;
}

.selected-ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.selected-ticket-item span {
    color: #555;
    font-weight: 500;
}

.selected-ticket-item .ticket-quantity {
    margin-left: 10px;
    color: #667eea;
    font-weight: 600;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 2px solid #e0e0e0;
}

.modal-header h2 {
    margin: 0;
    color: #667eea;
    font-size: 1.5em;
    border: none;
    padding: 0;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 30px;
    max-height: 400px;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #e0e0e0;
    text-align: right;
}

.ticket-select-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.ticket-select-item:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.ticket-select-item .ticket-info {
    flex: 1;
}

.ticket-select-item .ticket-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.ticket-select-item .ticket-price {
    color: #667eea;
    font-size: 0.9em;
}

.ticket-select-item .quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticket-select-item .quantity-control input {
    width: 60px;
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    font-size: 1em;
}

.ticket-select-item .quantity-control button {
    width: 30px;
    height: 30px;
    padding: 0;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
}

.ticket-select-item .quantity-control button:hover {
    background: #5568d3;
}

.empty-holiday {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
}

.travel-date-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.travel-date-form .form-group {
    flex: 1;
    min-width: 200px;
}

.travel-date-list {
    margin-bottom: 20px;
}

.transfer-section {
    background: #f0f4ff;
    padding: 20px;
    border-radius: 10px;
}

.transfer-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.transfer-section h4 {
    color: #764ba2;
    margin: 15px 0 10px 0;
    font-size: 1em;
}

.travel-date-form input[type="time"] {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.travel-date-form input[type="time"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .holiday-form {
        flex-direction: column;
        align-items: stretch;
    }

    .price-conversions {
        grid-template-columns: 1fr;
    }

    .price-main .price-value {
        font-size: 2em;
    }
}
