/* 通用样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

header p {
    color: #7f8c8d;
    font-size: 1.1em;
}

/* 主要内容 */
main {
    margin-bottom: 50px;
}

/* 搜索框 */
.search-box {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.search-box form {
    display: flex;
    flex-direction: column;
}

.search-box textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 15px;
    resize: vertical;
}

.search-box button {
    padding: 12px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    align-self: flex-end;
}

.search-box button:hover {
    background-color: #2980b9;
}

/* 结果容器 */
.result-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.result-container h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.result-content {
    line-height: 1.8;
}

/* 行程部分 */
.plan-description {
    font-size: 18px;
    margin-bottom: 15px;
    color: #34495e;
}

.plan-time {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 30px;
}

.plan-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.plan-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 20px;
}

.plan-section h4 {
    color: #34495e;
    margin: 15px 0 10px;
    font-size: 18px;
}

.plan-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.plan-info p {
    margin-bottom: 8px;
}

.plan-info p:last-child {
    margin-bottom: 0;
}

/* 交通选项 */
.transport-options ul {
    list-style: none;
}

.transport-option {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background-color: #f8f9fa;
    margin-bottom: 10px;
    border-radius: 4px;
    border-left: 4px solid #3498db;
}

.transport-type {
    font-weight: bold;
    color: #2c3e50;
}

.transport-duration {
    color: #7f8c8d;
}

.transport-cost {
    color: #e74c3c;
}

/* 兴趣点列表 */
.poi-list ul {
    list-style: none;
    margin-bottom: 20px;
}

.poi-item {
    padding: 15px;
    background-color: #f8f9fa;
    margin-bottom: 10px;
    border-radius: 4px;
    border-left: 4px solid #2ecc71;
}

.poi-name {
    font-weight: bold;
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.poi-rating {
    color: #f39c12;
    margin-bottom: 5px;
}

.poi-address {
    color: #7f8c8d;
    font-size: 14px;
}

/* 行程步骤 */
.plan-steps {
    margin-top: 15px;
}

.plan-step {
    display: flex;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    position: relative;
    border-left: 4px solid #9b59b6;
}

.step-number {
    width: 30px;
    height: 30px;
    background-color: #9b59b6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

/* 加载和错误状态 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: #718096;
    text-align: center;
    position: relative;
}

.loading:after {
    content: "";
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    position: absolute;
    margin-top: -50px;
    animation: spin 1s linear infinite;
}

.dark .loading:after {
    border-color: #4a5568;
    border-top-color: #3498db;
}

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

.error {
    color: #e53e3e;
    padding: 1rem;
    border: 1px solid #fc8181;
    border-radius: 0.375rem;
    background-color: #fff5f5;
    margin-top: 1rem;
}

.dark .error {
    color: #fed7d7;
    background-color: #9b2c2c;
    border-color: #c53030;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px 0;
    color: #7f8c8d;
    font-size: 0.9em;
    border-top: 1px solid #eee;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .search-box {
        padding: 15px;
    }
    
    .search-box button {
        width: 100%;
    }
    
    .transport-option {
        flex-direction: column;
    }
    
    .transport-type {
        margin-bottom: 5px;
    }
    
    .transport-duration {
        margin-bottom: 5px;
    }
}

/* 自定义样式补充Tailwind CSS */

/* 结果容器和操作按钮样式 */
.result-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.dark .result-actions {
    border-bottom-color: #4a5568;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.copy-btn:hover {
    background-color: #edf2f7;
}

.copy-btn:active {
    background-color: #e2e8f0;
}

.dark .copy-btn {
    background-color: #4a5568;
    color: #f7fafc;
    border-color: #718096;
}

.dark .copy-btn:hover {
    background-color: #718096;
}

.dark .copy-btn:active {
    background-color: #2d3748;
}

/* 美化结果内容 */
.result-formatted-content {
    line-height: 1.6;
    color: #2d3748;
}

.dark .result-formatted-content {
    color: #f7fafc;
}

.section-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-divider:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e2e8f0;
    z-index: 1;
}

.dark .section-divider:before {
    background-color: #718096;
}

.section-divider span {
    position: relative;
    display: inline-block;
    background-color: white;
    padding: 0 15px;
    z-index: 2;
    font-weight: 500;
    color: #718096;
}

.dark .section-divider span {
    background-color: #3a4a61;
    color: #cbd5e0;
}

/* 通知样式 */
.note {
    margin-top: 1.5rem;
    padding: 0.75rem;
    background-color: #fffaf0;
    border-left: 4px solid #ecc94b;
    color: #744210;
    font-size: 0.875rem;
}

.dark .note {
    background-color: #744210;
    color: #fbd38d;
}

/* 历史记录样式 */
.history-dropdown button {
    transition: all 0.2s;
}

.history-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:hover {
    background-color: #f7fafc;
}

.dark .history-item:hover {
    background-color: #4a5568;
}

.history-query {
    font-weight: 500;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-date {
    font-size: 0.75rem;
    color: #718096;
    margin-top: 0.25rem;
}

.dark .history-date {
    color: #a0aec0;
}

/* 响应式调整 */
@media (max-width: 640px) {
    .result-actions {
        flex-direction: column;
    }
    
    .history-dropdown {
        position: static;
    }
}

/* 动画过渡 */
.result-container {
    transition: all 0.3s ease-in-out;
}

/* 示例标签样式 */
.example-tag {
    display: inline-block;
    padding: 0 3px;
    border-radius: 3px;
    transition: all 0.2s ease;
    border-bottom: 1px dashed #ccc;
    font-weight: 500;
}

.example-tag:hover {
    background-color: rgba(52, 152, 219, 0.1);
    border-color: #3498db;
    transform: translateY(-1px);
}

.dark .example-tag {
    border-color: #4a5568;
}

.dark .example-tag:hover {
    background-color: rgba(66, 153, 225, 0.2);
    border-color: #4299e1;
}

/* 联系信息样式 */
.wechat-contact {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dark .wechat-contact {
    border-color: rgba(255, 255, 255, 0.1);
}

.wechat-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dark .wechat-contact:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* 提示词模板按钮样式 */
.example-template {
    display: inline-block;
    margin-right: 5px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-weight: 500;
    border: 1px solid #e2e8f0;
    margin-bottom: 5px;
}

.example-template:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dark .example-template {
    border-color: #4a5568;
}

/* UV计数样式 */
#uvCount {
    background-color: rgba(52, 152, 219, 0.1);
    padding: 0 5px;
    border-radius: 3px;
    margin: 0 3px;
}

.dark #uvCount {
    background-color: rgba(66, 153, 225, 0.2);
}

.result-container {
    display: none;
} 