/* ===== AIè‰ºæœ¯å­—ä¾§è¾¹æ  ===== */
.ai-artword-section {
    margin-top: 20px;
    background: #fff;
    border-radius: 21px;
    padding: 29px 0 0;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    position: relative;
    width: 362px;
    box-sizing: border-box;
    margin-bottom: 19px;
    box-shadow: 0 4px 16px rgba(43, 53, 86, 0.04);
}
@media screen and (max-width:1300px) {
    .ai-artword-section {
        width: 300px;
    }
}
.ai-artword-section::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 21px;
    padding: 1px;
    background: linear-gradient(135deg, #f6a7d5, #8e8dff);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* --- ç²¾çµå›¾æ ‡ --- */
.sp-icon {
    display: inline-block;
    width: 16px;
    height: 19px;
    background: url('../img/icon.png') no-repeat;
    background-size: 215px 173px;
    vertical-align: middle;
    flex-shrink: 0;
}
.sp-icon.icon-sparkle { background-position: -32.3px -52px; }

.ai-artword-section .aw-title {
    font-size: 22px;
    color: #1f1f22;
    margin-bottom: 9px;
    text-align: left;
    letter-spacing: 1.2px;
    padding: 0 20px;
}
.ai-artword-section .aw-subtitle {
    font-size: 13px;
    color: #acabb2;
    margin-bottom: 18px;
    text-align: left;
    padding: 0 20px;
}

/* --- é£Žæ ¼ç½‘æ ¼ --- */
.ai-artword-section .aw-styles {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 20px;
    background: #f8f8f8;
    width: 80%;
    margin: 0 auto;
    border-radius: 11px;
    margin-bottom: 10px;
}
.ai-artword-section .aw-style-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    background: #fff;
}
.ai-artword-section .aw-style-item.active {
    /* border-color: #6c5ce7; */
}
.ai-artword-section .aw-style-item img {
    width: 100%;
    height: 68px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
.ai-artword-section .aw-style-item .style-label {
    display: block;
    color: #333;
    font-size: 12px;
    text-align: center;
    padding: 5px 0 2px;
}
.ai-artword-section .aw-style-item .style-check {
    position: absolute;
    top: 24px;
    left: 22px;
    width: 20px;
    height: 20px;
    background: #2b35ec;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
}
.ai-artword-section .aw-style-item.active .style-check {
    display: flex;
}
.ai-artword-section .aw-more {
    grid-column: 1 / -1;
    display: block;
    text-align: center;
    font-size: 15px;
    color: #acabb2;
    margin: 4px 0 0;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
}
.ai-artword-section .aw-more:hover {
    color: #6c5ce7;
    text-decoration: none;
}

/* --- è¾“å…¥æ¡† --- */
.ai-artword-section .aw-input {
    width: 100%;
    min-height: 77px;
    border: none;
    border-top: 1px solid #ececf2;
    border-radius: 0;
    outline: none;
    resize: none;
    font-size: 13px;
    color: #333;
    padding: 14px 20px;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.6;
    margin-bottom: 0;
    transition: border-color 0.2s;
}
.ai-artword-section .aw-input:focus {
    border-color: #ececf2;
}
.ai-artword-section .aw-input::placeholder {
    color: #acabb2;
}

/* --- åº•éƒ¨æ“ä½œ --- */
.ai-artword-section .aw-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px 13px;
    background: #f8f8f8;
    border-bottom-right-radius: 22px;
    border-bottom-left-radius: 22px;
}
.ai-artword-section .aw-options {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ai-artword-section .aw-ratio-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid #ededf3;
    border-radius: 18px;
    background: #fff;
}
.ai-artword-section .aw-ratio {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #4a4a52;
    cursor: pointer;
    transition: color 0.2s;
    border: none;
    padding: 0;
    background: none;
    border-radius: 0;
}
.ai-artword-section .aw-ratio:hover {
    color: #333;
}
.ai-artword-section .aw-ratio .ratio-icon {
    width: 14px;
    height: 14px;
    border: 1px solid #999;
    border-radius: 3px;
}
.ai-artword-section .aw-count {
    font-size: 13px;
    color: #4a4a52;
    cursor: pointer;
    padding: 0;
    border-radius: 0;
    transition: color 0.2s;
}
.ai-artword-section .aw-count:hover {
    color: #333;
}

/* --- æ¯”ä¾‹/å¼ æ•°å¼¹çª— --- */
.ai-artword-section .aw-ratio-popup {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    padding: 16px;
    min-width: 280px;
    display: none;
    z-index: 10;
}
.ai-artword-section .aw-ratio-popup.show {
    display: block;
}
.ai-artword-section .aw-ratio-popup .popup-title {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    margin-bottom: 13px;
    text-align: left;
}
.ai-artword-section .aw-ratio-options {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.ai-artword-section .aw-r-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    width: 34px;
    height: 36px;
    padding: 10px 7px;
    border-radius: 10px;
    border: 1px solid #fff;
}
.ai-artword-section .aw-r-item .aw-r-box {
    border: 2px solid #ddd;
    border-radius: 3px;
    transition: border-color 0.2s;
}
.ai-artword-section .aw-r-item.active {
    background: #f8f8f8;
    border: 1px solid #ececec;
}
.ai-artword-section .aw-r-item.active .aw-r-box {
    border-color: #ddd;
}
.ai-artword-section .aw-r-item .aw-r-label {
    font-size: 11px;
}
.ai-artword-section .aw-count-options {
    display: flex;
    gap: 8px;
}
.ai-artword-section .aw-c-item {
    padding: 12px 12px;
    border: 1px solid #fff;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.ai-artword-section .aw-c-item.active {
    background: #f8f8f8;
    border: 1px solid #ddd;
}
.ai-artword-section .aw-generate {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 18px;
    background: linear-gradient(135deg, #4325e6, #6b2cff);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    white-space: nowrap;
}
.ai-artword-section .aw-generate:hover {
    background: linear-gradient(135deg, #4f32ed, #7740ff);
}
.ai-artword-section .aw-generate .gen-sparkle {
    font-size: 14px;
}
