/* 基础样式重置和全局设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 2rem;
    color: #2c3e50;
}

/* 主容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
h1 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    text-align: center;
}

h4 {
    color: #666;
    text-align: center;
    font-weight: normal;
    margin-bottom: 1.5rem;
}

/* 快递公司列表样式 */
#supportedCouriers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin: 2rem 0;
    padding: 0;
}

#supportedCouriers li {
    list-style: none;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

#supportedCouriers li a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #2c3e50;
    text-align: center;
    font-weight: 500;
}

#supportedCouriers li:hover {
    transform: translateY(-3px);
    background: #e9ecef;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 输入区域样式 */
textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    margin: 1.5rem 0;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
    background: #fff;
}

textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

/* 按钮组样式 */
.buttons {
    display: flex;
    gap: 12px;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

button {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #4CAF50;
    color: white;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    background: #45a049;
}

/* 结果表格样式 */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: #f8f9fa;
}

/* 复制提示消息样式 */
#copyMessage {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #333;
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    display: none;
    animation: fadeIn 0.3s ease;
    z-index: 1000;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .container {
        padding: 1.5rem;
    }

    .buttons {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    #supportedCouriers {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .container {
        padding: 1rem;
    }
}