/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

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

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
    background: linear-gradient(45deg, #f39c12, #e74c3c, #9b59b6, #3498db);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
}

/* 使用说明样式 */
.instructions {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.instruction-content {
    color: #555;
    line-height: 1.8;
}

.instruction-content p {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.instruction-content p:before {
    content: "•";
    color: #e74c3c;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 问题输入样式 */
.question-section {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* 使用次数限制提示样式 */
.usage-limit-notice {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    border: 1px solid #ff6b9d;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.2);
}

.usage-limit-notice h3 {
    color: #d63384;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.usage-limit-notice p {
    color: #6f2c91;
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.usage-limit-notice .highlight {
    color: #d63384;
    font-weight: 600;
}

/* 使用次数限制提示消息样式 */
.usage-limit-message {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    animation: fadeInUp 0.3s ease-out;
}

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

.question-input {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
    margin-bottom: 15px;
}

.question-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.confirm-btn {
    width: 100%;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
}

.line-text {
    margin-left: 10px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* 摇卦区域样式 */
.divination-section {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.current-line {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e74c3c;
    margin-bottom: 30px;
}

/* 操作提示样式 */
.operation-tips {
    text-align: left;
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    border-left: 4px solid #007bff;
}

.focus-tip {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 8px;
    font-weight: 500;
}

.operation-hint {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* 铜钱样式 */
.coins-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    max-width: 400px;
    margin: 40px auto;
    padding: 0 20px;
}

.coin {
    width: 80px;
    height: 80px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    cursor: pointer;
}

.coin-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    object-fit: cover;
    object-position: center;
}

.coin-front {
    transform: rotateY(0deg);
}

.coin-back {
    transform: rotateY(180deg);
}

/* 铜钱翻转动画 */
.coin.flip {
    animation: coinFlip 0.8s ease-in-out infinite;
}

.coin.shake {
    animation: coinShake 1.0s ease-in-out infinite;
}

/* 为每个铜钱设置不同的动画延迟，让正反面变换更随机 */
.coin:nth-child(1).shake {
    animation-delay: 0s;
}

.coin:nth-child(2).shake {
    animation-delay: 0.2s;
}

.coin:nth-child(3).shake {
    animation-delay: 0.4s;
}

@keyframes coinFlip {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    25% { transform: rotateY(90deg) rotateX(90deg) scale(1.1); }
    50% { transform: rotateY(180deg) rotateX(180deg) scale(1.2); }
    75% { transform: rotateY(270deg) rotateX(270deg) scale(1.1); }
    100% { transform: rotateY(360deg) rotateX(360deg); }
}

@keyframes coinShake {
    0% { transform: translate(0, 0) rotate(0deg) rotateY(0deg); }
    10% { transform: translate(-8px, -12px) rotate(-15deg) rotateY(180deg); }
    20% { transform: translate(10px, -8px) rotate(20deg) rotateY(0deg); }
    30% { transform: translate(-6px, 15px) rotate(-25deg) rotateY(180deg); }
    40% { transform: translate(12px, 8px) rotate(30deg) rotateY(0deg); }
    50% { transform: translate(-10px, -5px) rotate(-20deg) rotateY(180deg); }
    60% { transform: translate(8px, 18px) rotate(25deg) rotateY(0deg); }
    70% { transform: translate(-12px, -10px) rotate(-30deg) rotateY(180deg); }
    80% { transform: translate(15px, -15px) rotate(35deg) rotateY(0deg); }
    90% { transform: translate(-8px, 12px) rotate(-18deg) rotateY(180deg); }
    100% { transform: translate(0, 0) rotate(0deg) rotateY(0deg); }
}

.coin.show-front {
    transform: rotateY(0deg);
}

.coin.show-back {
    transform: rotateY(180deg);
}

/* 摇卦按钮样式 */
.shake-button-container {
    margin: 30px 0;
}

.shake-btn {
    font-size: 1.2rem;
    padding: 15px 40px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.shake-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.6);
}

.shake-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 六爻显示样式 */
.hexagram-lines {
    margin-top: 30px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.line-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    margin-bottom: 8px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.line-name {
    font-weight: 600;
    color: #2c3e50;
}

.line-result {
    font-size: 2rem;
    font-weight: 900;
    color: #e74c3c;
    min-width: 80px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    line-height: 1;
    transform: translateY(-0.5em);
}

/* 卦象结果样式 */
.result-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* 卦象结果容器 */
.result-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

/* 卦象显示区域 */
.hexagram-result {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 0;
}

.hexagram-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hexagram-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hexagram-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.hexagram-symbol {
    font-size: 3.5rem;
    margin-bottom: 12px;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hexagram-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #34495e;
    margin-bottom: 8px;
}

.hexagram-description {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.5;
}

.interpret-button-container {
    text-align: center;
}

/* 按钮通用样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.6);
}

/* 关注引导区域 */
.subscribe-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.subscribe-content {
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-welcome {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 500;
}

.subscribe-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
}

.subscribe-features {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.feature-item {
    margin: 10px 0;
    color: #555;
    font-size: 15px;
    padding-left: 5px;
}

.subscribe-hint {
    color: #888;
    margin: 20px 0 15px 0;
    font-size: 14px;
}

.qrcode-container {
    margin: 20px 0;
}

.qrcode-image {
    width: 200px;
    height: 200px;
    border: 2px solid #eee;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.subscribe-buttons {
    margin-top: 25px;
}

/* 问题输入区域 */
.question-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 占卜元数据样式 */
.divination-metadata {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.divination-metadata h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 600;
    border-bottom: 2px solid #6c757d;
    padding-bottom: 8px;
    text-align: center;
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.metadata-item {
    background: white;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.metadata-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.metadata-item .label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9em;
    margin-bottom: 5px;
    display: block;
}

.metadata-item .value {
    color: #212529;
    font-size: 1em;
    font-weight: 500;
}

/* 爻位配属样式 */
.line-attributes {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.line-attributes h3 {
    color: #856404;
    margin-bottom: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #856404;
    padding-bottom: 8px;
}

.attributes-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attribute-row {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.attribute-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.attribute-line {
    font-weight: 600;
    color: #856404;
    min-width: 70px;
    margin-right: 15px;
    font-size: 1em;
}

.attribute-details {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    flex: 1;
}

.attribute-detail {
    color: #495057;
    font-size: 0.95em;
    display: flex;
    align-items: center;
}

.attribute-detail strong {
    color: #856404;
    font-weight: 600;
    margin-left: 5px;
}

/* 按钮样式增强 */
.btn-secondary {
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    color: white;
    box-shadow: 0 5px 15px rgba(149, 165, 166, 0.4);
    margin-left: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(149, 165, 166, 0.6);
}

/* 重新开始按钮特殊样式 */
#restartBtn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    margin-left: 15px;
}

#restartBtn:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    transform: translateY(-2px);
}

#restartBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

/* 卦象解读区域 */
.interpretation-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.interpretation-section .section-title {
    color: white;
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.question-hint {
    margin-bottom: 15px;
    color: #666;
    font-style: italic;
    text-align: left;
}

.question-hint p {
    margin: 0;
    font-size: 14px;
}

.divination-tips {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.divination-tips h4 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.divination-tips ul {
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.divination-tips ul:last-child {
    margin-bottom: 0;
}

.divination-tips li {
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.divination-tips li strong {
    color: #e74c3c;
    font-weight: 600;
}

.interpretation-result {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    min-height: 200px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

/* Markdown样式 */
.interpretation-result h1,
.interpretation-result h2,
.interpretation-result h3,
.interpretation-result h4,
.interpretation-result h5,
.interpretation-result h6 {
    color: #2c3e50;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.interpretation-result h1 {
    font-size: 24px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.interpretation-result h2 {
    font-size: 20px;
    color: #34495e;
}

.interpretation-result h3 {
    font-size: 18px;
    color: #7f8c8d;
}

.interpretation-result p {
    margin-bottom: 15px;
    text-align: justify;
}

.interpretation-result strong {
    color: #2980b9;
    font-weight: 600;
}

.interpretation-result em {
    color: #8e44ad;
    font-style: italic;
}

.interpretation-result ul,
.interpretation-result ol {
    margin: 15px 0;
    padding-left: 25px;
}

.interpretation-result li {
    margin-bottom: 8px;
}

.interpretation-result blockquote {
    border-left: 4px solid #3498db;
    margin: 20px 0;
    padding: 15px 20px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.interpretation-result code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e74c3c;
}

.interpretation-result pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
}

.interpretation-result pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.interpretation-result .loading {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px 0;
}

.interpretation-result .error {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
}

.interpretation-result::-webkit-scrollbar {
    width: 8px;
}

.interpretation-result::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.interpretation-result::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.interpretation-result::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .coins-container {
        gap: 20px;
    }
    
    .coin {
        width: 60px;
        height: 60px;
    }
    
    .coin-face {
        font-size: 14px;
    }
    
    .hexagram-result {
         grid-template-columns: 1fr;
         gap: 20px;
     }
     
    .interpretation-section {
        padding: 15px;
    }
    
    .interpretation-result {
        font-size: 14px;
        padding: 15px;
        max-height: none;
        overflow-y: visible;
    }
 }

/* 主要内容 */
.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

/* 表单容器 */
.form-container {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.novel-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

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

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

/* 角色项 */
.character-item {
    background: #f7fafc;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.character-item:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.character-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.character-header h3 {
    color: #4a5568;
    font-size: 1.2rem;
}

.remove-character {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.remove-character:hover {
    background: #ff5252;
    transform: scale(1.05);
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

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

.btn-secondary {
    background: #4ecdc4;
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

/* 订单查询 */
.order-query {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    height: fit-content;
}

.order-query h3 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.query-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 加载遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .container {
        padding: 10px;
    }
    
    .form-container, .order-query {
        padding: 20px;
    }
}

/* 动画效果 */
.form-container, .order-query {
    animation: slideInUp 0.6s ease-out;
}

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

/* 输入框动画 */
.form-input, .form-textarea {
    position: relative;
    overflow: hidden;
}

.form-input::before, .form-textarea::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transition: left 0.3s ease;
}

.form-input:focus::before, .form-textarea:focus::before {
    left: 0;
}

/* Footer样式 */
.footer {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 1px solid #e2e8f0;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-company {
    font-weight: 500;
    color: #475569;
}

.footer-icp {
    color: #64748b;
}

.footer-icp a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-icp a:hover {
    color: #667eea;
}

/* 响应式footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer {
        padding: 15px 0;
        margin-top: 30px;
    }
}